If an airliner can read social media and find out you have a important funeral to attend they can triple the price. But I'd hope that would be illegal.
Historically, airlines have been sympathetic to those situations rather than extortionate. Bereavement fares have been declining as ticketing has moved online but several major carriers still offer them.