When you jailbreak your iPhone, it voids your warranty with Apple. That being said, if something goes wrong with your device and you need to take it in for repair, you will likely have to factory reset it, which removes the jailbreak. In other words, while you can technically unjailbreak an iPhone, it's not always easy or worth the effort.