Moderate exposure is healthy, and may decrease the risk of many other cancers and heart disease.
https://www.medicalnewstoday.com/articles/260247#3
https://www.telegraph.co.uk/news/2018/03/07/dose-sunshine-ex...
https://www.marksdailyapple.com/why-some-sun-exposure-will-p...
Another way to look at it is that we evolved with the sun over millions of years, and that wouldn't have happened if it were too bad for us...