The simple answer is yes.  However, the key thing to bear in mind with any leasehold purchase is the length of the lease as the length of your loan is normally determined by length of the lease.
There are some exceptions but in most cases goodwill loans would be expected to be structured over a 15-year term so in ideal world, your lease would need to be for 15 or 20 years.
We do see practices on the market with shorter lease terms, say 5 or 7 years, and it is more difficult, but not impossible, to arrange finance for these purchases simply because they can pose an affordability issue for many new practice owners.
If you are buying a leasehold practice, always speak to an independent broker and specialist dental lawyer for advice.