Did you have a c-sect for your firstborn? If yes then it’ll be a risk because depends on individual, it will take 6-24 months to heal. And the risk of having a uterine rupture is higher than those who had normal birth. So usually doctors advise c-sect moms to wait for at least 1 year before trying to get pregnant again.
If you had a normal birth, I think it’s quite safe to be pregnant within the year provided you are comfortable and do not have any bleeding whatsoever.