Will everything be erased? And will I get caught?
Nobody cares about jailbroken iOS devices.

Even Apple only care if you take it for a warranty repair (as handing a jailbroken device to them and saying "this doesn't work" will probably get a response of "well, you jailbroke it").

I would say relax and don't panic.

To answer the first part of the question, doing a system Restore will remove all traces of the jailbreak. It's MUCH harder to jailbreak an iOS device than it is to remove a jailbreak :)