Provided contracts have not been signed you can normally withdraw.  After the contract is signed you generally cannot do so unless there is substantial default on the part of the seller or an event provided for in the contact arises e.g. some event on which the purchase was contingent does not happen.