Single mom questions

Has anyone ever got pregnant from a hookup/fwb who you can contact and told them you want to keep the baby but don't want to be with them? Has it worked out for them to agree to pay child support?