To a degree. Any time you are in direct sunlight, some UV rays will make it past your sunscreen. If you don't want your tan to deepen, use the right sunblock, stay in the shade, wear a hat, and wear other protective clothing.