I’m confused

So me and my boyfriend had sex, I started off on top he didn’t have a condom on for like 2 seconds but then he put a condom on, I’m safe right? My brain is overthinking and is causing my anxiety to go up