You’d better not to wear glasses right after the surgery cause the wound does not heal and they could put some pressure on your nose. You won’t like how it feels.
It’s not a huge deal.You can wear glasses and sunglasses on top of your nasal splint during the first week of recovery. But just be more careful and don knock on others.
If you have contact lens, you might feel more comfortable to wear them instead of frame glasses. However, you should consult your plastic surgeon for profession advice.