Can you unlock iPhone 3gs?

Sure you can unlock your iPhone 3gs but before that you have to jailbreak iPhone 3gs.