16 and Pregnant!?!?!!

I’m only 16 and I recently had sex with my ex boyfriend and I’m not sure he pulled out in time and I’m really freaking out because I don’t know what to do. I know it’s a risky mistake and I’m just so scared. Any advice??