They can still produce some electricity, just not as much as on a sunny day. It is important to note that the amount of electricity generated on a rainy day will depend on the intensity of the rain and the amount of sunlight that still reaches the panels. It is also important to note that solar panels are designed to be durable and resistant to various weather conditions, including rain, so they will not be damaged by it.