I'm just about to complete unlocking a Galaxy S for the first time for a co-worker who wishes to purchase my old one from me.

Once I've unlocked the phone, am I able to do a factory reset to clear everything off of it again, and still have it unlocked?

Thanks.