I had a cancerous mole removed in 2013 (melanoma stage 1a) and my dermatologist basically told me tanning is NOT ok and was never ok.
"There is no such thing as a healthy suntan. Any change in your natural skin color is a sign of skin damage. Evidence suggests tanning greatly increases your risk of developing skin cancer. The increase in skin pigment called melanin, which causes your skin to tan, is a sign of damage. Once skin is exposed to UV radiation, it increases the production of melanin in an attempt to protect the skin from further damage. The increase in melanin may cause your skin tone to darken over the next 48 hours."