Yes. Solar panels are designed to work independently of the public utility grid and will continue to produce the electricity when it is out.