Infection is a risk with any surgery (or even a simple kitchen knife cut for that matter). The chance of infection drops with the care of the surgeon and the attention of the hospital staff. Larger hospitals with more complex patients tend to have more infection risks. (You might want to check the hospital infection rate prior to agreeing to surgery). Curing the infection may be as simple as antibiotics or as complex as further surgery.