Hi, and thank you for your question.
Condoms, when used properly, can prevent sexually transmitted infections (STIs) including HIV. Even if a partner is HIV positive, with correct condom use the risk of acquiring HIV would be very low.
The best way to check if you have an infection is to get tested. We always 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.