Generally pronouns refer to a noun.
Can pronouns, however, refer to a clause or an infinitive used as a noun?
I like to swim; John also likes it.
(Is this usage correct? We can think that 'it' refers to 'to swim' which is used as a noun (object) here.)
How about clauses?
I have heard that John has gone; Mary has also heard it.