Yes, landlords can terminate the lease if they sell the property, but they must provide proper notice and possibly compensate the tenant.