It is generally safe for pregnant women to fly during pregnancy, and most airlines allow pregnant women to fly up until 36 weeks of pregnancy. However, it is always a good idea to check with your healthcare provider before booking a flight, as there may be some specific considerations for your individual situation. Some airlines may have their own policies regarding pregnancy and flying, so it is also a good idea to check with the airline before traveling.
In general, it is recommended that pregnant women avoid flying during the first trimester, when the risk of miscarriage is highest. It is also generally recommended that pregnant women avoid flying during the last few weeks of pregnancy, as the risk of going into labor during the flight increases as the pregnancy progresses.
If you do need to fly during pregnancy, it is important to take some precautions to make the experience as comfortable as possible. For example, you should try to book a seat with extra legroom, stay well hydrated, and get up and stretch your legs frequently. You should also wear comfortable clothing and bring any medications or other items you may need during the flight.