Action Replay codes are used to modify game data and unlock features. While there are codes that can do things like give you unlimited items or make Pokémon super powerful, there is no code that will allow you to catch trainers.
It's important to remember that using cheats can diminish the fun of the game and may not always be compatible with all versions of the game.