As long as the slots are the same size, yes.
I don't know the size of either device(s) you're referencing. T-Mobile does not assign SIM cards to a brand of phone. But, if you're upgrading and the new phone uses the same size SIM as your existing phone, you're welcome to use it.
There is a little bit of a caveat to the above statement. Some features may only work with an updated SIM (for example, WiFi Calling requires a SIM from a certain "generation"). It's usually special network features that require a newer SIM though.
Need our help? Contact us.