Can pilots wear glasses/corrective lenses inside the cockpit?
Yes.  All current classes of FAA-issued medical certificates allow for the use of corrective lenses in the cockpit.  See Title 14 §67 Medical Standards and Certification.