No, you must fulfill the conditions of your personal quest at the time you retire. If you perform city activities after announcing retirement and non longer meet your retirement conditions due to those activities, you can no longer retire.
[Errata] Note that second sentence on page 48 of the rule book regarding Announcing Retirement should read "The character may perform any other town activities before retiring, ..."