As far as I know there is little if any proven benefit to vitamin D supplementation, but a lot of links between high vitamin D and good health markers. Just a reminder that you should try to get some sun exposure as well for natural vitamin D, as that may well be where the health benefits really come from
As an aside when it comes to sun and vitamin D: your body will still produce vitamin D from the sun if you wear sunscreen. You also get all the mental health benefits like serotonin and whatnot with sunscreen.
So, if you're a partial sun plant (white person), you should get sun but you should use sunscreen, and you'll be fine and that will work.