Is it wrong to eat my dog when it dies?

YES!because you do not know if it had a diseases. If it has a medical condition it might be contages