Yes, panels still generate electricity on cloudy days, but at reduced output. At night, they don’t produce power – that’s where batteries or grid connection help.