The general rule of thumb is that when you upgrade the iOS the jailbreak and unlock are removed, you can however re-apply them after the upgrade. However remember that all your save games and third party apps will not be recovered afterwards.
Hope this helps
- Simon