Yes, solar street lights can charge on rainy days, but their efficiency will decrease. And they can also work on rainy days by using the energy the battery stores on sunny days. On rainy days, the controller will reduce the intensity of light in case the following days are all rainy days. Common solar street lights have an IP 65 rating, making them able to resist water.
More reading: Pros And Cons of Solar Street Lights