This depends on the situation. In most cases, if the buyer changes their mind, they are unlikely to get their down payment back, but they may be able to recover their earnest money deposit if they cancel within the contingency period. If the sale falls through due to the seller, it may be possible for the buyer to get their down payment back.