Flying and 24 weeks pregnant

Is it okay to fly at 24 weeks pregnant?? If I did it wouldn’t be a long flight at all. Maybe 1 1/2 hours long.