can you get pregnant if you have unprotected sex on the same day your period ends?

So me and my boyfriend went camping and we had unprotected sex but although we're usually careful he came inside of me this time. I've been on birth control before but stopped for about 3 months now so we're just using condoms and being careful. I'm very worried with all of this because this has happened before but I had just started taking the pill but for not taking any risks I took the morning after pill. It's been a day since but should I go to the clinic and take the morning after pill or wait and take a pregnancy test?