Every source I've seen clearly states tanning always increases your chance of skin cancer. Tanning does provide a small amount of protection against burning (around 3 SPF worth), but no protection against cancer.
https://www.scientificamerican.com/article/fact-or-fiction-a...