sun is good for you in moderation, the amount that is ok depends on your skin color, how tanned you get, in which part of the world you are and how often you are outside. Avoid too much sun and avoid sun burns and also avoid crazy strong sunscreens that block the benefits of getting sunlight. The lifestyle that some people have of spending the whole year inside in an office and that spending their all vacations roasting at the beach is very unhealthy because body does not have time to adapt.