Is sunlight a source of vitamin d?

yeah but like any other vitamin u dont wanna get too much of it

Vitamin D is nicknamed the "sunlight" vitamin. Including the sun, the main sources of vitamin D are vitamins and fortified dairy products.