Yes, and that needs to stop. An off-grid setup should still be subject to all the applicable building and electrical codes, inspections, etc., and perhaps extra checkups on battery health. But once it is installed, running, and inspected, it should be like any other household.
I'm personally flabbergasted that a basic solar installation (e.g., 2 kw+) hasn't been required on every house for national defense, just as the impetus for the interstate highway system national defense (and obviously now maintained for the commerce it enables). In a grid collapse scenario, the difference it would make to have every house with even small stand-alone capability (just enough for a refrigerator, communication, some lighting, etc.) vs millions just in the dark, would be enormous. But here we are, just shoveling $$billions to the grid operators.