Getting a permit ensures that the work is up to current building codes because the building department will review the plans and inspect the work at various stages of construction, including framing, electrical, and plumbing. The inspector must sign off on each phase before moving on to the next step.