Traveling 33 weeks pregnant

Tamara • First time mom to be👶🏻
I am hoping to get an opinion of expirienced moms:) i am due in the beggining of october. In august my husbands best friend is getting married, travelling there will involve a flight ( about 4 hours i think).
My doctor said he doests reccomend travelling after 32 weeks. Do you think i can do it?