Hydrogen is most often produced from natural gas, so...yes, it is a "primary energy"
Granted, using hydrogen produced that way isn't a win over just using natural gas.
Granted, using hydrogen produced that way isn't a win over just using natural gas.