Yes. Using condoms correctly every time you have physical contact, knowing your partner's HIV status, and not sharing needles are effective ways to prevent HIV.