No it won't protect you from the sun, you must strictly apply broad-spectrum sunscreen or limit the exposure to the sun, else you will get more hyperpigmentation and other photo-induced skin diseases. For better result cover the ares with broad-spectrum sunscreen of SPF at-least 30+ or with protective clothing.