Yes you are correct T-Mobile is GSM,so it will work with AT&T network USA.For this you need to get your phone unlock from current network lock.To unlock it you can use unlock code.Visit the site Classicunlocking.com get unlock code at low cost and unlock from service provider lock.Specify the Mobile phone brand,model and IMEI number to get unlock code for T-mobile network.