Can you store solar electricity for the night or for cloudy days?

Absolutely. This is one of the major advantages of combining photovoltaic systems with batteries. This combination allows you to maximize self-use of the green electricity you produce by saving it for when you need it, rather than when the sun is shining.