Yes. For a non-refundable deposit (or a liquidated damages clause) to be valid, it needs to be reasonable and proportional to the damage suffered by the party at the time of the contract. Also, many types of popular security deposits are regulated by law and often fully refundable.