To a certain extent, yes. The reason why the water is there is because the thermal flux of the ground is low, so the large mass of water provides a strong buffer. But you can’t cheap physics. You would need a crap ton of salt hydrate to accommodate a whole season of heat needs, even if you don’t factor in thermal loss from the container.