Having a baby won't give you someone to talk to.
It will give you someone to scream at you, to wake you up at 2am, and 3am, and 4am and 6am.
It will give you someone who's uttely dependent on you, to the point that you wonder how the fuck you're expected to even shower or make something to eat.
It will likely make you feel like you're going mad from tiredness and that you have lost your identity as a person.
It will make you feel alone and isolated as you are no longer free to just leave the house.
It will make you feel pain like you've never experienced before.
As mothers we endure all this because it's worth it at the end of the day, but it's really fucking hard even if you do have money and support. If you don't, it can feel like a living nightmare.
There is a reason the Mumsnet mantra is "this too shall pass". It's because there are a lot of really awful times that feel like they're never going to end, and if we allow ourselves to think that we'll totally lose the plot.
I expect you'll be a great mum one day. But running headlong into it as a solution for loneliness or lack of purpose is a recipe for disaster.
You owe it to yourself and your future children to get yourself in a stronger place before having them. You don't need to worry about time running out for another 10 years. I had my first at 34.
Shelve this idea for now, as there's no going back once you've done it. Work on finding some purpose, so you can show your children what a good life is like.
Have you considered volunteering, perhaps one day a weekend or one evening a week, doing something more interesting? That's a good way into a better, more rewarding career. What interests do you have?