Most, but not all, mortgages have a due-on-sale clause. Some types of mortgages are assumable, like VA, FHA, and USDA loans.