Trading them yes, but that only excludes trading them, not having them, accepting them as gifts, organizing your society around feudalism and serfdom, etc. (At one point Buddha says monasteries must accept gifts of slaves, other times that individual monks who must not accept them. He is sometimes maybe inconsistent.)