The answer depends on several factors, including the voltage and amount of electricity involved, as well as the type of rubber used. Natural rubber does provide insulation from low-voltage electrical current, although it is not suitable for use in high-voltage applications. Synthetic rubbers such as neoprene, silicone, and EPDM are better suited for those types of situations. Additionally, the thickness of the rubber, as well as its temperature rating, must be considered before it can be used safely. In some cases, multiple layers may be necessary to provide adequate protection. It is always important to remember that electricity can be dangerous and in many cases should only be handled by a qualified professional.