Yes. If you hold a licence to practise in the years leading up to your retirement you will need to revalidate in what you are currently doing, up until the point you retire. You should discuss the management of your appraisal and supporting information with your Responsible Officer if you are retiring before a full five-year cycle. If you choose to retain your licence to practise in order to undertake practice post-retirement, you will still need to revalidate according to that activity.
You may also find the GMC's 'Revalidation Frequently Asked Questions for Retired Doctors and those preparing to Retire' useful.