Okay to test?

Is it okay to test 2 weeks and 4 days after having sex and have an accurate result?