Yes, you can restore your device to its factory settings using iTunes or Finder, which will remove the jailbreak and any customizations.