Can you get infections through artificial insemination?

Rare but possible. If there's signs of a male bacterial infection, with infection-fighting white blood cells in the sperm (pyospermia) we would not use that specimen for an intrauterine insemination or IUI as we might spread infection to the uterus or tubes. Viral infections like hepatitis b, hep. C, and HIV can be transmitted by sperm, so sperm donors are tested. Washing the sperm for IUI doesn't remove all virus.