The ED as a result of that surgery can be either temporary or permanent. Thus, when the muscles inside penile area are relaxed, more blood will enter the penis and an erection will occur.