It is not always cheaper to buy a last-minute ticket at the airport. In fact, buying a ticket at the airport can sometimes be more expensive than buying it online in advance. This is because airlines may charge extra fees for buying tickets at the airport or through their call centers.
Furthermore, there may not be any available seats on the flight you want to take, which means you might end up paying more for a flight with a layover or having to wait for another flight.
That being said, there are some instances where buying a last-minute ticket at the airport can be cheaper. For example, if there are unsold seats on a flight, airlines may offer these seats at a discounted rate to fill the plane.
Overall, it is always best to compare prices online and book your ticket in advance to ensure the best deal. If you do decide to buy a last-minute ticket at the airport, make sure to arrive early and be prepared to pay extra fees.