when would a pregnancy test be accurate

i did one at 5 and 6 weeks after sex and they were both negative. are they accurate at 6 weeks?