Can i use plumbing flux for electrical?

Can I use plumbing flux for electrical work, or is there a risk of damaging my electrical components?