Yes, all pilots who need to wear spectacles use prescription sunglasses, and it is definitely recommended that you do so.