While anyone can contract HIV, certain behaviors increase risk. These include having unprotected sex, sharing needles for drug use, and receiving unsafe injections, blood transfusions, and tissue transplantation. Additionally, infants born to mothers with HIV and those who are breastfed by them can also contract the virus.