Yes. The advantage of hydrogen is the extremely low cost per unit of stored energy. That is the cost you want to minimize for a storage case with few charge-discharge cycles, like rainy day or seasonal storage.
For diurnal storage, batteries or other more efficient storage technologies would make more sense, since there would be more charge-discharge cycles over which to amortize the cost of the system.