Can I dive if I wear glasses?

Yes you can. The simplest option is to wear daily disposable contact lenses. If you don't wear contacts, a prescription mask is a great alternative. You can rent prescription masks from your dive centre or invest in your own that better match your eyesight requirements.