Yes, solar panels do work on cloudy days — but not as effectively as they would on a sunny day. That’s because clouds block some of the sun’s energy from reaching the ground (or in this case, your roof).
Under overcast conditions, your solar panels will produce anywhere between 10% and 60% of their regular power output, depending on how thick the cloud cover is.