HIV and pregnancy HIV is an infection that attacks your immune system. Getting tested early and getting treated can protect your baby. Learn about HIV and pregnancy.