In most cases, if the deal falls through due to reasons specified in the contract, you can get your earnest money deposit back. However, it's crucial to review the terms and conditions of the contract carefully and consult with your real estate agent or attorney for guidance.