This is fair, though the reason we do it is to make sure the other person is okay enough to answer the question or talk about the thing first and if not we would want to help them out or take that into consideration.
Just asking the question feels rude or dismissive if they aren't doing well.