Something that might happen while committing perjury is definitely going to jail, if you should be so stupid to lie on the stand. It's illegal.