Not necessarily. Many lenders will allow the outstanding balance to be settled from other funds not just by the sale of the property.