Yes. The pupils would contract naturally, when there is a throng of strong light. As a result of that, the light could not pass through too much and the harm to the eyes could reduce to the least degree. If you wear a pair of prescription sunglasses in low quality, it is bound to cause damage to the eyes. The lenses of the low-quality prescription sunglasses could undermine the strength of the light, but they could not hinder the passing of UV. At the same time, the pupils may not contract for the strength of the light has been undermined, so there will be more UV coming into the eyes, which cause more disastrous harm.
You can get a cheap prescription sunglasses with high quality in http://www.glassesshop.com