The ED caused by that surgery can be either temporary or permanent. Thus, when the muscles within the penile area are relaxed, more blood will enter the penis and a harder erection will occur.