That somewhat depends on if it's already unlocked, if it's carrier-locked by your current carrier. If it is carrier locked you need to be sure to have the phone unlocked by your current carrier prior to terminating your service with them.
If you need additional help or have more questions or details to share, please join the site so you can reply in this thread. See
this link for instructions on how to join Android Central.