No, the sun does not always have to shine. Even when it is
cloudy, the solar power system generates electricity. However, electricity
production will be comparatively higher if there is bright sunshine.