We can do better than "known for decades, on a layman's level" folklore and the answer actually isn't as straightforward ([1]). Recently there's even been discussion (by a Brit scientist I believe but I have no reference) on skin cancer vs more serious forms of cancer, and also about skin pigmentation playing a role here.
[1]: https://www.sciencedirect.com/science/article/pii/S0022202X2...