Unprotected anal sex is among the highest risk activity for possible HIV infection, assuming your partner has HIV. If this happened a few weeks ago then it shouldn't be much longer to get to the post 28 days exposure timepoint, when you should take a 4th generation duo test for a conclusive result. If the guy doesn't have HIV then you had zero exposure and have nothing to worry about. If he does have HIV, it's not a guarantee that you'd get it, but there is a risk that you could. Which is why you should always use condoms every time. If your partner doesn't want to use condoms then you should reconsider whether it's worth putting yourself at risk.
Of course unprotected anal sex is a risk for hiv. If both of you dont have hiv, then u cannot get hiv.
But since u cannot confirm his status, i advice u to go get hiv test. Good luck