Yes, if what you mean is a Gameshark or Action Replay style device. Cheat Engine works on the PC, so it applies to emulated or PC versions of the games rather than to a cartridge in a handheld.
Back up your save before experimenting. Memory editing is unforgiving, and a corrupted file is not something the game will warn you about in advance.