Hi if you want to use iphone with t-mobile sim then sure you can use it without any issues only if the iphone is unlocked one .Else if the iphone is locked to some other network provider then until you unlock it you can't use it with any other GSM sim .You can easily unlock your iphone through providers like Unlocking4U.com they are delivering remote unlocking service to unlock all model iphone from network lock .