slave codes were laws passed by southern states to increase an owners controle over enslaved African Americans behavior

That is correct. Slave codes were laws enacted in the southern states from the late 17th century to the mid-19th century. These laws were designed to control and regulate the behavior of enslaved African Americans and maintain the institution of slavery. The slave codes sought to limit the freedom and autonomy of slaves, restrict their movements, prohibit literacy and education, prevent them from gathering in groups, and govern their interactions with free individuals. These codes were a fundamental part of the legal and social system that enforced the subordination and exploitation of enslaved people in the southern states.