Hi anon and thanks for your question.
Implantation bleeding can sometimes be confused with having a period. if the bleeding lasts longer than a few hours, or more than a panty liner can take, it is more likely to be your period.
You can take a pregnancy test 14-21 days after the day you had unprotected sex.
Hope that helps,