My question involves criminal law for the state of:

If someone is in a Mental Hospital because they're mentally insane - let's say the guy who shot Reagan and if this guy hypothetically assaulted, raped or murdered someone at the Hospital he's confined too for being judged mentally insane by the courts, can he still be convicted of murder, even if he uses the insanity defense, as the Court has already pronounced him Mentally Insane?