How the Moon Reflects Sunlight: Understanding Lunar Illumination
Yes, the moon gets its light from the sun. The moon itself doesn't produce any light of its own. It reflects the sunlight that falls on its surface.
This is why we see different phases of the moon – it's the changing angles of sunlight reflecting off the moon's surface that we see as waxing and waning.