If you upgrade it, it will just undo the jailbreak. Unless your phone is unlocked and you are using another carrier that apple doesn't support (Cincinnati Bell or T-Mobile) then you will have some problems. If you are running on AT&T or Verizon, you will just have to find the jailbreak for the new firmware.