Cats can smell the magnetic field and would not normally approach the electric fence. Dogs will not normally touch a second time but they will not be harmed if they do.