Yes using spectacles (or contact lenses) does not automatically disqualify you from obtaining a Class 1 pilot medical certificate under DGCA or FAA standards provided your vision can be corrected to meet the required standards.
A Class 1 medical certificate requires good visual acuity but the key point is corrected vision. If your eyesight defect (e.g. myopia hyperopia astigmatism) can be fully corrected with glasses or contact lenses to the required levels the medical examiners will generally accept you.
The DGCA and FAA assess whether after correction, your visual acuity meets their standards (for example 20/20 distance vision acceptable near and intermediate vision, and no other disqualifying eye conditions).
Bring your corrector prescription: You’ll need to present your current spectacles/contact lens prescription at the medical exam. The DGCA process explicitly lists spectacle/contact lens prescription (if applicable) as a required document.
Ensure your corrected vision meets standards: Before scheduling your medical it’s wise to visit an optometrist or ophthalmologist and verify that your visual acuity, with your glasses or lenses meets or exceeds the required thresholds (distance near and possibly intermediate vision depending on age and authority). If your current prescription doesn’t quite cut it a vision upgrade might be needed.
Be ready for extra checks: Even if your vision is correctable, the medical examiner may look for other ocular issues such as color vision deficiencies field defects strabismus (eye alignment problems) or retinal pathology which could affect certification. As long as these are within acceptable limits or treatable this is usually manageable.
Follow up if needed: If your vision is not quite adequate with your current spectacles or lenses, many applicants successfully improve their vision (e.g. by updating the prescription, using contact lenses, or undergoing corrective surgery) and then reapply.