if you eat in the sun it will.
getting enough sun is important. if you are hardly outside you should use the summer days to lay in the sun for short amounts. your whole body needs sun exposure.
what i used to do is set an alarm for 14:00 in the summer. why 14:00? because between 10:00 and 14:00 the sun is so strung that it can easily hurt you but after 14:00 it gets considerably milder.
i used to lay on the balcony in the sun for 10 minutes only in underpants; 5 minutes on the back and 5 minutes on the belly. the cells of the skin need direct sun exposure for vitamin production. after i got used to 10 minutes i went up to 15 minutes and after a few days i went to 20 minutes.
sunlight is medicine. as soon as you get enough, stuff starts to heal. if you just keep out the sun while it is hottest, you don't need sunscreen. i never trust that stuff. i dunno if i would use it in hotter climates but here? i wouldn't use it.
i never heard a doctor speak about sunlight. i did encounter the subject in old naturopathic lectures though.