Ann asked Mary what time the library closes, but *she* had forgotten.

Do "Ann" and "she" have the same meaning?
no