It can in theory, but in practice it is extremely unlikely. The odds get quoted as roughly 99.99% safe against 0.01% risk.
If a game ever does freeze after a cheat, turn the console off and back on before assuming the worst — most saves survive that. Reports from people who have used the device for years, including myself and my friends, tend to be uneventful.
Older cartridges are the more fragile case, so if you are worried, back up the save with a dongle before you start. A replacement cartridge is easy enough to find on marketplaces like Play or eBay.