HI no you can't use your prepaid t-mobile sim in phone which is locked with AT&T until you unlock it .You can easily unlock your phone using sites like TheUnlockArena.com here they are rendering unlock code for all mobile models at reliable cost .The cost to unlock the phone depends on the phone model ,network provider to which it is locked ...