You had unsafe sex 2 days ago then you got your period on time can you still be pregnant?

No. A "period" is your sign that you are not pregnant.