Thanks for query.
Usually first and last week of your period cycle is safe period.
In your case it is safe but risky so it is better to go for emergency contraceptive pill
This can be taken within 36-48 hours.
There is no problem even if you are not pregnant.
Ok and bye.