If the couple have their marriage contract stamped, but they just got married during 3 months of pregnancy, are they already safe?

are they already safe ????