Yes, a seller can exclude the legal warranty of quality for an entire building by including an express clause to that effect in the promise to purchase and/or in the deed of sale. By accepting such a clause, the buyer agrees to acquire this property as is at his own risk.