From about late March/early April to the end of September, most people should be able to get all the vitamin D they need from sunlight.
The body creates vitamin D from direct sunlight on the skin when outdoors.
But between October and early March we do not get enough vitamin D from sunlight.