It depends a bit on the flight altitude and plane type (newer planes have higher pressure and shorter flights are lower altitude) but i’ve learnt not to have carbonated beverages before flying.
Definitely, and never ever a non-alcoholic beer, yet to find one that isn't 99% gas by volume, you'll explode like Mr Creosote