Yes, you can take the mortgage with you to your next home although this could be subject to lender criteria.