Iphone 3g unlock; T-mobile + Iphone= charges?

if you unlock your iphone and insert a SIM card such as t-mobile, will it charge your t-mobile service extra since you used the data plan on the iphone? or will your t-mobile bill be the same and nothing be charged. Help would be nice, thanks!
I think you have to have a data plan wit ht-mobile, otherwise it will charge per kb.

Original thread: https://forums.imore.com/threads/iphone-3g-unlock-t-mobile-iphone-charges.168703/