I think fertility doctors use this method for spinal cord injury victims. It does cause an ejaculation, but because of the pain involved, it basically isn’t used for any other class of males. (the spinal injury prevents the feeling of pain).
Considering this, I’d be careful.
Look it up on google. more frightening than encouraging. And that assumes your dick doesn’t die and fall off from electrical burns.