Sometimes, but it very much depends on the game. Titles that keep player state and physics on the server, or that use anti-cheat protection, will simply ignore memory edits.
Beyond the technical side, using these tools in online matches breaks the rules of nearly every multiplayer service and is a fast route to a ban, so it is rarely worth the risk.