Custody?

My bf and I are not married and I am pregnant with his child. Would I get primary custody of the baby if he took me to court? I don't do drugs or anything that would make me an unfit mother.