Sun also emits infrared which seems to cause positive effects counteracting some of the UV related problems.

Some cell and animal studies show that there is a slight possible effect. It hasn't been shown in humans, and even in extrapolation from animals, the protective benefit does not seem particularly significant.