No. If the docs diagnose that you are completely nuts though, the jury and the law may send you to the nuthouse. That's, because the law recognizes punishment is justified by choices made. It is not justified if the person is incapable of making choices, but is driven by the random wanderings of a disfunctional mind.