yea, but you wont be able to use 3G so the the internet is wifi ONLY, the T-Mobile internet plan will not have an effect on the iPhone 3G, you can still call and text and everything else but you'll have to have wifi to get on the web
and btw, you'll have to hack the iPhone in case you didnt know