Hi, and thank you for your question.
Condoms, when used properly, can prevent sexually transmitted infections (STIs) including HIV. Even if your partner was HIV positive, with correct condom use the risk of acquiring HIV would be very low.
Of course the best way to determine if you have an infection is to get tested. We recommend routine testing for STIs including chlamydia, gonorrhea, syphilis, and HIV for all sexually active individuals.
Let us know if this does not answer your question or if you have any more questions or concerns.