It depends on how you did it. If improperly unlocked, the phone will become relocked when software-updated. If done properly through a carrier, it's straightforward enough, provided you can show that you are the owner.
For more, try here: http://m.imore.com/