Depends on the circumstances, actually. If you are unmarried, you'd better not be pregnant, or else you will be subject to shame. If you are already married, people will be happy for you.
When Indonesians greet you, one of the first things they will ask is whether you are married and how many children you have. Family and relationships are very high cultural values.