Flying while pregnant

Hey ladies!

Hubby booked us a flight to Montana for a baby moon. Only thing is I did the math and I’ll be almost 31 weeks when we fly. Is that ok? Too risky? Thoughts please