Can I update my jailbroken iPhone 4 version 4.1?

Ever since I've had my phone, my uncle jailbroke it for me and so I tried updating it after that one time but it deleted everything. So after that I didn't update it anymore which is why I have such an old version. Would I be able to update it now to version 5.1.1 without losing my stuff including the jailbreak? Cause I heard that you just need to wait for there to be a jailbreak update or something like that?

If you updated you lose everything so if you want to keep your jailbrake i would not updated