Traveling while pregnant?

Is it okay to travel while pregnant? I’ll be 31 weeks and flying from Michigan to Florida....

The airline says doctors note is needed if within 45 days of due date. I will be about 60 days from due date.