Cheat codes can make capturing legendary Pokemon easier by adjusting catch rates. However, remember that catching legendaries with cheats might diminish the sense of accomplishment.