It's generally best to wait until the pregnancy is publicly announced or confirmed by the expectant parents before offering congratulations. Pregnancy can be a sensitive topic, and it's important to respect the couple's privacy and timeline.