It can! What's important to know about PMLE is that it's caused by UV-B rays of the sun, which cause your skin cells to produce more melanocytes, which produce more melanin (a brown pigment that gives you a tan). So it's all related to exposure to UV-B rays.
So be sure that when you put on sunscreen for a day at the beach or outside in general, it blocks out both UVA and UV-B rays. And use a daily moisturizer with SPF protection, too, if you don't already have one in the same way! They do work pretty well together!