It's not strictly true that "hacking destroys your game," but it carries real risks:
Using hacks, glitches, or external tools to add rare Pokémon, infinite items, or altered stats violates the intended experience and can make the game feel less rewarding.
Some hacks—especially on older titles with minimal anti-cheat—can corrupt save data, causing crashes or lost progress.
In online games (Pokémon GO, Sword/Shield, etc.), hacking is strictly prohibited and leads to permanent bans because it undermines fair play.
For single-player, whether hacking "ruins" the game is subjective. Some enjoy the challenge of legitimate play; others prefer the freedom hacks provide.
Important: If you play online, stick to legitimate methods to avoid losing your account.