The important factor for cancer is how much energy penetrates the outer layers of the skin and is therefore able to damage DNA.