Yep! It was really easy to line them up perfectly too. The line where the top and the sides join on the Kallax there's a little lip.. I just set the legs up flush to this line and drilled them in. 5 minutes max with a drill and screwdriver bit.
And here's the legs I used too: https://www.amazon.com/dp/B098N57RDL?ref=ppx\_yo2ov\_dt\_b\_product\_details&th=1