Early test?

Is it okay to test 11 days after unprotected sex? Im now on my cycle day 23.