Sometimes. It depends where the infection is. E coli infection in the form of an abscess in the pelvis or causing pelvic infection in general can lead to scarring. The scarring can damage the fallopian tubes and/or the ovaries making it more difficult o become pregnant. On the other hand, a urine infection with e coli should not have any effect of fertility.