I believe you are referring to the Criminal Codes which are the compendium of statutes and regulations which are applicable to, and define, criminal acts anhd behavior that is punishable by law.
If you are interested in studying criminal behavior, you might want to considered majoring in criminology or forensic psychology.
Criminology incorporates the principles of psychology, sociology...