Yes, they DO work like normal batteries in that regard.
The idea is that you use excess solar and wind to winch a weight. You know, during the day. Then during the night when the sun isn’t shining, you let the weight turn a generator. Bam, extra energy from the day available at night. Nice...