Very true but depending on what latitude you live at, it may be impossible to get enough on sunlight alone. There's dermatologist that claims a link between latitude and mortality:
https://www.ted.com/talks/richard_weller_could_the_sun_be_go...
Recommended watching - there is more to sunlight than Vitamin-d.