Sex during 1st trimester

Hend

Hi ladies

I lost my first baby in the 5th month

Now i'm pregnant and the dr told me no sex is allowed at all in the first three months!? Is that okay?