Yes, as long as the buyer does not defaults during escrow. The most common case buyers lose their deposit during escrow is getting cold feet at the last minute. Getting cold feet after removing all contingencies is the most common example.