HI no you can't use t-mobile sim in a phone which is locked with AT&T network until you unlock it ...You can easily unlock your phone using sites like Onlinegsmunlock.com here they are rendering unlock code for all mobile models at reliable cost ..After unlocking your phone you can freely use it with t-mobile or any other GSM sim ....