Mortgage Interest Deduction for Two Homes

Hello. I have two homes, my primary residence and a second home that is not a rental.  Can I deduct the mortgage interest from both mortgages? My primary residence mortgage balance is $735K, and the second home mortgage balance is $631K.  Thank you