A mortgage is recorded against the property and runs with the land. Yes, it would encumber the subject property regardless of any subsequent deed transfers. Provided the mortagge was properly drafted, signed and recorded, your interests are still protected.