You have to unlock to flash a phone to another carrier. Just make sure you used the right unlocker. I recommend you read and study the flashing process. There are several threads on this site that will walk you through it. I recommend codybear's FAQ on flashing over on xda-developers website. You'll figure it out.