No-contest clause

A no-contest clause, also called an in terrorem clause, is a clause in a legal document, such as a contract or a will, that is designed to threaten someone, usually with litigation or criminal prosecution, into acting, refraining from action, or ceasing to act. The phrase is typically used to refer to a clause in a will that threatens to disinherit a beneficiary of the will if that beneficiary challenges the terms of the will in court. Many states in the United States hold a no-contest clause in a will to be unenforceable, so long as the person challenging the will has probable cause to do so.

Question: can a will have a no contest clause
Answer: yes