There is no strong scientific evidence that suggests that taking azithromycin to treat an infection during pregnancy causes miscarriage. In fact, some infections have the potential to cause miscarriage if left untreated, so it is best to treat any infections promptly to prevent complications.