Absolutely, retain that independence. Hook up to electricity to fulfill the zoning crap, but keep it off...and pay that tiny bill of minimum use. It might come in handy on occasion.
You probably know this, but at times you’ll produce more than you need, and your meter runs backwards. Then at times you’ll need some from the grid too. Of course this depends on whether you set it up this way and are still connected to the grid.