In theory, you could store enough energy during the day to survive the night.
In practice, the numbers become overwhelming.
Supporting continuous operations for 14.5 days would require enormous energy storage systems that dramatically increase launch mass, cost, complexity, and maintenance requirements.
For the scale of infrastructure envisioned for a permanent lunar presence, today's battery technologies simply aren't practical.