Actually, if you read this poem carefully, what's going on is rather more complicated than a simple Just Say No message. Whitter is equating the ability of hash to distort the senses of those who use it with the ability of cotton money to distort the moral sense of those who profit from it.