I mean, it could work out, but if it does it'll be by luck not design.
For a start, you haven't even told him upto now so he has the whole idea of becoming a parent to get used to in less than half the time most people get, all because you chose not to tell him. Whilst he might feel an obligation to make a go of things with you (you seem pretty convinced of this, I'd be less sure personally), it doesn't change the fact you've lied by admission and he didn't even like you enough in the first place to make something of your "relationship" because he's already lost contact with you/let things fizzle out.
Add to all that, babies put even the strongest relationships under unbelievable pressure. Sleep deprivation. The sudden, overwhelming sense of responsibility you have for another person. Hormones, especially in the early days. Readjusting your view of what being a parent would involve and realising you might have completely different views on how to do things than the person you decided to have the baby with, so you have to work a way through that.
My advice OP, would be to tell him, ASAP. He has a right to know. But after that, let go of your frankly naive happy-ever-after dream. If you have family and friends to support you where you are, STAY there. It's the best way to ensure you get through the early days of being a mum with your sanity still intact. Don't leave that behind for the fantasy of making a go of things with a man who ultimately you barely know, regardless of whether he suggests it or not.
Be open to him having contact with the baby and if after the dust settles you both decide you want to make a go of things, do it gradually and without any sudden moves. You'll have this baby together for the rest of your lives, if it's meant to work out it will.