Melanin helps protect from DNA damage by absorbing much of the UV radiation. As you get more exposure to sunlight, your skin produces more melanin resulting in more protection.
A sunburn is what you want to avoid and it's easier to get when you stayed indoors the whole year and only go outside when the sun is out full blast. I personally think this modern lifestyle is one of the reasons people get more skin cancer despite being outside less. There are studies that show that chronic sun exposure isn't that bad.
Is this a thing? Surely DNA damage from UV is dose-dependent, in which case any greater amount of UV results in a greater chance of skin cancer.