What happens if you restore from backup after jailbreak on an IPhone 5?

I just jail broke my iPhone 5 and I rememeber that after I updated to iOS 7 I restored from my backup to redownload all my apps so what happens if I do that after I jailbreak? Will the jailbreak come out?

If your restoring after installing the jailbreak, then the jailbreak will be taken off. Since your putting the pre-jailbreak settings back onto your iPhone

No restoring from backup will just put all you stuff back on. The jailbreak will stay on