Sunscreen causes skin cancer not sunlight.

https://www.health.harvard.edu/staying-healthy/sunscreen-makers-withdraw-products-found-to-contain-cancer-causing-substance