Not quite. By battling, you gain EVs from the POkemon you face, which allow you to have a greater amount of stats that correspond with the EVs gained. Rare Candies should be used after you have gained these EVs. So for those of you who cheat using the rare candy cheat, if you want a good Pokemon, you still have to do a lot of training :P If you're going to cheat, why not make your Pokemon invincible or something? :P