No, not all fire extinguishers are suitable for electrical fires. Use a Class C fire extinguisher or a non-conductive extinguishing agent like CO2 or dry chemical extinguishers to put out an electrical fire.