Yea, deep focus is the term. Often done with a small stop, but also done with effects when time/lighting/whatever makes
doing it in-camera impractical. Not my fav movie of all time, but Gregg Toland did this a lot on "Citizen Kane." One famous
scene has someone watching Kane on a dias giving speech, while high up in the "cheap seats" someone s watching.
Both are in focus. It was a combination of two separate shots....