Just curious!

Would a pregnancy test have an accurate result after two and half-three weeks?