Yes, it will work. You will need to unlock the phone. If it's paid off, T-mobile will send you the unlock code and instructions on how to unlock it.
I have an unlocked T-Mobile Galaxy Note 3 and I am using a straighttalk AT&T sim. For the most part, it works fine with the AT&T sim but I am...