Not really, because if you don't have access to electricity then you very likely don't have access to hydrogen either. Hydrogen is much more difficult to transport and store compared to natural gas, gasoline, diesel, etc.
Getting electricity out of hydrogen works the same way as getting electricity out of all the sources you mentioned, except your generator now produces zero emissions.