Can I resurrect a corpse that was previously animated as undead?


One of my teammates has died in battle. As a noble necromancer, I do not want to carry his corpse to the temple on my shoulders, instead I plan to animate his corpse, so he can walk on its own.

Then, in temple, I can destroy the created zombie and pay for his resurrection. Would he get resurrected properly?