Loan secured by old home used to buy new home.

The mortgage on our old home was paid off.  We obtained a new mortgage and used our old home to secure the loan.  The proceeds were used to pay cash for our new home (principal home) in a different state.  When our old home sold some months later, we paid this mortgage off in full.  Is the interest we paid on this loan deductible since it was not used on the home used to secure it?