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

Do "The dog" and "It" have the same meaning?
yes