If your threat model involves civilization deteriorating to the point where natural gas stops working then sure, a generator with fuel storage on site probably makes more sense. I'd argue that gasoline is the worst of available options though. Diesel and propane are much more shelf stable and typically more reliable than small gasoline engines.