Do "leg" and "it" point to the same thing in the following sentence?

The donkey wished a wart on its hind leg would disappear, and *it* did.
no