Can you update a jailbroken iphone?

Well, apparently I, without thinking, I updated my jailbroken iPhone 3GS, i think it was on 4.3.2. And it got updated to the available one for today which is I think is IOS 6. After the update, the apple logo keeps restarting and the only thing I can do is put it in recovery mode. If I restore it on iTunes, will it work? Or do I have to click restore while pressing shift and select a certain IOS?

You need to restore it on iTunes when you restore it the jailbreak will no longer be on it to re jailbreak it go to http://evasi0n.com/ and then select your operating system then follow the instructions