Doctors often perform surgery for anorectal malformations after the baby is born. The type of surgery can vary depending on location and type of malformation, but in some cases, doctors have a chance to fix it with one operation.