Then in most cases, no. That's not the case. The vast majority of the time a judge won't let you get away with that.
And FYI, there doesn't need to be a "breach of contract" section. If you violate a term of the contract, any term, no matter how slightly, you have breached. If you deliver 9,999.999 tonnes of steel when someone orders 10,000, you have breached. Minor breaches and major breaches are treated differently by the court and many aren't worth suing over.
What you're probably thinking of is an indemnification clause - "If xyz happens, you have to cover court costs."