You need to go for a general check-up
Many of us look healthy on the outside, but have conditions we aren't fully aware of on the inside. Very few people manage to go for checkups often then when you get pregnant and go for one, you realize that there is an issue going on.
Make sure you visit your gyna and your general practitioner before getting pregnant. This is to make sure you're ready, and for peace of mind as well.
Your mental health should be stable
Some people have made the mistake of assuming that their mental health problems will disappear once a baby comes. A baby can make you happier, but they are not a solution for an already existing problem.
Poor mental health won't allow you to raise your child the right way. This can also affect your child's life, which is totally unfair.
Therefore, go for counselling if you have any concerns you've never dealt with first before making this life changing decision.
Your relationship should be stable enough
It's also common for couples to get kids when they're not in a healthy place. And that dysfunctional foundation is probably the root reason why so many adults struggle with all sorts of mental health problems.
The structure that has been healthy for generations is having kids when you're married. And even when you are married, make sure you've addressed any issues to avoid stress during and after your pregnancy.