They'll make him pay child support now, or in 12 years. Either way he'll get nailed with it.
If he tries to take the baby, take him to court and say he's an unfit father. Since being in jail is a bad start, i'm sure the judge with think so aswell.
Or, if you don't even care about childsupport yet, you can either give the hospital a fake name when you give birth, or you can tell them that you dont know who the father is, sounds nasty but when it comes to your kid....You know what I mean!
My boyfriend passed away 2 weeks before I found out, i'll get a check every month for him doing so since i'm having his baby. But, i've decided to give the hospital a fake name anyways, so his dad won't be able to have any rights.