The statement that does not apply under the slave codes is: They were not allowed to learn how to write, but could learn to read.
In fact, most slave codes prohibited enslaved people from learning to read and write altogether, as literacy was seen as a threat to the institution of slavery.