Hi!
First day of periods is usually a very safe time to have unprotected sex with no fear of pregnancy. The spotting after 2 weeks could have been ovulation bleed. To test for pregnancy, you’ll need to weight until your next due date of periods. Take care!
Retest just in case to help you feel better