Will I get my sex drive back if I quit masturbation?

Is my erectile dysfunction due to stress or masturbation?