When can I test?

Is it okay to take a pregnancy test one week after unprotected sex? Or too early??