If a boyfriend leaves his pregnant girlfriend could he get custody of the baby?

As unfortunate as this may be it is possible for the father to get custody of the baby, but not full custody unless the mother is proven unfit. Because reguardless of what happened between the couple the father is still the father of the child, and the father still has his rights as a father to be a part of his child's life.