If you have the resources, the support network, and the emotional aptitude, by all means, invest in having children. Even if you don’t enjoy the experience (the data shows a significant percentage of parents do not), society gets them as taxpayers eventually. But if you don’t, don’t. The data shows that if unintended pregnancies are avoided (about 40% globally annually, per the Guttmacher Institute and the UN), the fertility rate will settle someone between 50-75% of replacement rate (2.1).
TLDR Optimize for your own happiness. Ignore peer and societal pressure. If that means not having kids, and that causes society challenges, that’s a society problem to solve, versus dumping that externality and reduction of agency, freedom, and options on individuals.