Context:The dog chased the cat , which ran up a tree. *It* waited at the top.

Is "It" the same as "the cat"?
yes