As long as the pilot light is on, your gas water heater can function when your home doesn't have power. Gas water heaters only rely on electricity to spark the gas below the tank, and the pilot light is a sign that it's lit.