Hello Sher,
We have lots of students wearing spectacles, we also have successful pilots who are now flying with big airlines that are wearing glasses.
To make sure, you may visit an aviation medical examiner for proper advice. You can use this locator to search for the nearest AME in your area. https://www.faa.gov/pilots/amelocator/
Thank you for using our forum!