Yes, you can ride an electric bicycle in the rain. However, you should take precautions such as wearing waterproof clothing and keeping the battery and electrical components dry. Some e-bikes are designed to be more water-resistant than others.