Can you travel by plane

When you are 23-24 weeks pregnant?

Edit: if you have gestational diabetes