Is it racist to use the word "thug"?

Hannah

Serious question. I don't use this word because to me it feels like it has racist connotations. But I've been hearing people use it a lot like it's the same as calling someone dumb.

I'd like to be educated, can someone help? What does it mean exactly, and is it a racist term? Thank you.