Assuming no further exposure, an HIV test done 3 months after exposure or unprotected contact if negative will rule out HIV infection.