Yes. A current mortgage does not prevent you selling your home. Often, the sale of an owner-occupied property does not coincide with the expiry of the mortgage. You have three options, which we are happy to investigate with you:
Transferring the mortgage to the new home
Having the buyer take on the mortgage
Cancelling the mortgage (often associated with fees)