Will solar panels work on cloudy days?

Yes. Solar panels generate electricity from daylight, not just direct sunshine. While output is lower on cloudy days, they'll continue producing energy throughout the year.