Yes. Once you have purchased the flat, you will have the legal right to extend the lease straight away. There is no longer a requirement to have owned the property for more than two years before applying for a lease extension.
More information you might find useful: