Yes. Cheat Engine is by far the best-known tool of its kind, a memory scanner and debugger that lets you inspect and alter a running game's values. There are numerous tutorials available if you want to learn how it works.
It is worth understanding where it is appropriate. Cheat Engine is designed for single-player and offline games, where changing your own save state harms nobody. Used against online titles it is both ineffective — the server holds the real state — and a fast route to a permanent ban.
So: legitimate for experimenting with a single-player game you own, and a bad idea everywhere else.