Can you get banned for cheat codes?

It is illegal . Sanctions include civil and criminal penalties if caught hacking.