If your offer is conditional on the satisfied inspection and the approval of mortgage, which is most common conditions of an offer, you can back out if you are not satisfied with the inspection or just say you didn't get proved for the mortgage within the date specified in the offer.