Mostly not. The majority of online games are built without cheat codes, because anything that altered the game state would affect other players on the same server.
That design choice is deliberate: server-side control keeps play fair, which is why single-player titles have cheat menus and online ones generally do not.