The Black Codes were put in place in south Carolina (as well as other places in the southern states) as a way to make whites continue to feel superior and suppressing the rights of African Americans, while technically not breaking the law, as they were not enslaving the Africans.
~
The Answer To Your Question Is Yes.