It would depend on what type of rhinoplasty you are having done and what type of bridge work is being performed if any. Without bridge work you can wear your glasses immediately. If any bridge work was done you should wait up to a month after surgery before having the eyeglasses rest on the reshaped bridge.
I prefer that patients tape their glasses to their forehead if they need to wear them during the first 3-4 weeks so that it does not cause undue pressure on the nose. Best to ask your surgeon.