From what's been reported, it doesn't work reliably. One player tried it and it crashed the system and wiped their save data. So either the cheat doesn't function in Pokemon XD: Gale of Darkness, or it was done incorrectly—either way, it's risky and not recommended.