Hugo B. answered 08/16/22
2D/3D Animation & Character Rigging w/ 5+ yrs of experience w/ Blender
If I'm understanding the question correctly, then you're asking if a 3D environment can be made from a single 2D image source. In which case the answer is no, not really, as you will only have one perspective of all the objects in the image. Yet, in video games for example, 2D images can have bump maps, UV maps, and several other types of file maps (texture files) which can be combined via editing software for game engines or animation software like Autodesk Maya, Blender, Cinema4D, etc. which can give surfaces the appearance of having additional geometry in it when it does not.
On another hand, you can use a photo image to model a 3D space environment with objects that match the picture source, but it really depends on the software you use to have access to plugins which can measure distances based on mathematical calculations of the objects in the image source. In a 3D environment it's generally much easier to make the objects individually and place them onto a surface that matches the perspective of the camera angle in the 2D image (in Maya it's known as an "image plane").