FWIW, dermatologists are beginning to think that genes play a much greater role when it comes to melanoma. Some studies seem to show that regular sun exposure (like construction workers who are outside all the time) has some protective benefits WRT melanoma. They’re still trying to figure it out. OTOH, sun exposure is a contributing factor where non-melanoma skin cancers are concerned.