Yes, but (a) your body's ability to do this decreases as you age, and (b) sun exposure has other downsides such as increased risk of skin cancer, so there's a tradeoff involved.
Stop clinging to that as a reason to shelter indoors and replace life with vitamins and manufactured meals.
Different people's skins have different sensitivities. Also, skin cancer doesn't happen in one exposure; the risk builds up over time.
> Stop clinging to that as a reason to shelter indoors and replace life with vitamins and manufactured meals.
Stop making assumptions. I personally have dark enough skin that a reasonable amount of sun exposure doesn't bother me. But that apparently didn't stop my vitamin D from being low (see my post elsewhere in this thread), so evidently I am dealing with the other thing I mentioned, the fact that your body's ability to make vitamin D from sun exposure decreases with age. So I started taking a supplement. Would you rather I just let my vitamin D be too low no matter how much sun I got?