won't be able to put sunblock, as they need very clean and dry surface for the gel to adhere. they usually swipe your nail with some acetone prior to application to removed any oily residue
I would think that sunscreen would protect your skin around the nail bed. The nail polish itself should absorb UV radiation so it doesn't pass through your nail to the skin beneath it. But that's just my guess.