Yes, it is the correct answer. One can get an inverted and real image in a pinhole camera. A pinhole camera is a simple camera without a lens and with a single small aperture, a pinhole. Light from a scene passes through this single point and projects an inverted image on the opposite side of the box.