Hi yes you can sure use t-mobile sim card in phone locked with AT&T only after unlocking it from AT&T ..You can easily unlock your phone from AT&T network using sites like Onlinegsmunlock.com here they render unlock code for all mobile models at reliable cost ..After unlocking your mobile you can freely use your phone with any GSM sim ....