Yes,you will do it.Before swap your T-mobile prepaid sim card to other phone,Make sure your new phone is unlocked one.If it's network restricted phone means,you will need to unlock your phone.For unlocking you can approach your service provider or else try to buy an unlocking service from any one of the online unlocking service provider like Unlocking4U.com I hope it will be very useful to you.