It is not possible to play as Gaara in Naruto: Battle for the Leaf Village, and cheat codes do not change that.
The roster is fixed in the game's data, so codes that claim to add him are either fake or refer to a different title entirely. If playing as Gaara is the goal, other Naruto games do include him.