12 weeks pregnant - sex

We’ve had two miscarriages very early on, I am now 12 weeks pregnant. Saw babies very beat twice. We decided to try sex for the first time today. He came in me - is this okay? Starting to panic a little. Just need some reassurance.

Thank you as always ladies!