No you don't; it just says your partner's Pokemon has fainted.
For all the trouble its worth, the wild Pokemon is going to faint before you make Cheren run out of Pokemon. Just get through the forest with Cheren (use a Repel if you want), and after he leaves you go through Pinwheel again and catch the Pokemon you wanted.