You can get sunburned in the shadow. If your skin is fair you should wear a high-factor sunblock, that's the only way to prevent damage to your skin. There may be after-sun lotions that enhance cellular repair, but I am not aware of the proven effects.
Here is a paper from 2005 that puts forth a new application of DNA repair reagents:
After sun reversal of DNA damage: enhancing skin repair.