Yes, earnest money can be a gift. If a buyer receives a gift from a relative, for example, they will need to make the lender aware and verify the deposit.