Can a father get custody of a child during a divorce if the mother is seeing someone before the divorce?

The fact that a parent is seeing someone else before a divorce takes place should have no impact on custody whatsoever, unless the other parent feels that the third party would have a negative impact on the child, or would endanger the child in any way. As each case is judged individually, you need to get a lawyer.