It would depend on the actual content of any agreement included. It could have been little more than a place in line, it also could have contained wording that allows the dealer to back out of the agreement if they choose. Deposits are often a tool used by shitty dealerships to separate people from their money.