Solar panels can still generate electricity on cloudy days, although their efficiency may be lower compared to sunny days. Proper sizing of the solar system and battery storage can help mitigate any fluctuations in power generation.