Restoring from backup after jailbreak
Yes. That would undo the jailbreak. All you need to do is start the iPhone into recovery mode and then click restore in the option when your iPhone is connected to your Mac or Windows in iTunes/Finder.