It will work...
I have a 'factory' unlocked Iphone from Hong Kong and the phone worked perfectly on T-mobile in the States under their prepaid plan within limits. The only reason I couldn't surf the internet on the T-mobile network (i.e., wifi surfing was fine) was because I chose the prepaid plan. If I had chosen the family plan at T-mobile, all the other functionalities could have worked.