Yes, the above approach still works in 3d. you just need to make sure that “movement distance” is large enough so that you don’t see objects in the distance pop in or out of frame.
and in 3d, distant objects will have to move much further than foreground objects. So you might opt to use different settings for movement distance or speed for foreground and background objects unless you want to build everything for the background object settings. That will just require you to use more foreground objects since they will spend more time offscreen.