Does Cheat Engine work for GTA Online?

No Cheat Engine itself is not detected . Like external modding (and internals to a certain degree) – you can be banned for what you do with it and not because you just had it open.