Partners and baby's

Just a quick one.. I'm currently not with my baby's dad but would people still give their baby the dads second name if you weren't together? I'm personally saying my ex partner doesn't deserve it as we aren't together and he doesn't wanna know unless we are which is out of order as he's cheated a number of times! What do you guys think?