Yes T Mobile will a pull a credit check and you might have to pay an upfront deposit to get your T Mobile service turned on.
The deposit will vary depending on how your credit is.
Although T Mobile does a have prepaid option called T Mobile One where you prepay for your phone service without a credit check.