Is 5 weeks enough for an accurate HIV result?

It’s a 4th gen test. I had unprotected sex 5 weeks ago.