Provided the device meets the criteria - AT&T should be able to provide the unlock code. Unlock codes are not specific to the carrier you're going to use, once a device is paid off or other criteria are met the originating carrier can provide the unlock code to allow the device to be used on ANY other mobile carrier.
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.