Unlock my AT&T iPhone still need to pay?

So I brought an iPhone from AT&T with 2 years contract and unlock it to Tmobile. Do I still need to pay the 2 years contract if I unlock my contract iphone? Thanks!

Added (1). Ok thanks… I saw some unlocking on eBay. It said the phone can be unlocked even if contract, blacklist, and lost/stolen. It said when it unlock you can use on any carrier on blacklist too. Is that true?

Yes, otherwise you need to pay an early termination fee

if you don't do one of these, AT&T will put your phone on a blacklist, and it will be deactivated, and not be able to be used with ANY wireless company in the world, even if its unlocked.

Yes; the phone is irrelevant after your initial purchase. What is relevant is the fact that when you purchase the phone, you agree to service with AT&T for two years, with a plan that also includes a data package. You can unlock the phone and bring it to T-Mobile, but that doesn't do anything towards your agreement with AT&T. You either pay out the two years or pay the early termination fee ($375 - $10 to $15 per month spent on contract).

Yes you still need pay.

Yes you still need to honour any contracts you have regardless of whether you get it factory unlocked unless you pay the ETF (early termination fee) from AT&T.