Quite frankly, no -- solar panels work only when there's sunlight to convert into electricity. Even on nights with strong moonlight or starlight, these illumination sources won't make a difference.
[pdf] Solar panels can traditionally only produce power when the sun shines, but new developments are changing that.Scientists have developed solar panels that can work in the dark and be powered by rain.These innovations could transform solar into a 24-hour power source, helping with the world’s transition to net-zero emissions.
[pdf]