Ya sure only after unlocking your Motorola Razr2 mobile from AT&T network you can freely use it with t-mobile or any other GSM sim .You can easily unlock your phone using sites like WickedUnlock.com here they are rendering network unlock code for all mobile models at reliable cost .