Not necessarily. If you are concerned about your ability to travel with glaucoma, you should seek advice from your doctor or medical professional.
Where flying is concerned, air travel rarely has any effect on the pressure in your eye.
The air pressure within the cabin is carefully regulated as the plane ascends and descends, so little change in eye pressure will occur.