No. Sunglasses and hats are not allowed in the visa photo, except for religious or ethnic headwear that does not cover the face. Your face should be fully visible in the photo.