There are so many reasons for ED that it's hard to know what is happening. Two big issues are High Blood Pressure and plaque in your blood veins.
I took Viagra for 5 years off and on before the PC Surgery. Never had any issues but the surgery made it useless.