If you gave the contract to someone (to burn) when the court order prohibited giving it to a non-party, yes, absolutely. No need to be obtuse about it and to fight the hypo. It isn't entirely unusual for a contract in a litigation to be marked as attorney's eyes only, or highly confidential, and for there to be a protective order limiting the distribution of such documents. Also would not be unusual for a party to produce such a document in the discovery process, to which a protective order would also apply.