Usually an "as is' contract permits an inspection and  provides for this contingency.  Without reading your contracgt, no one can answer.