Can a father get custody before the mother?

No, but the father can get the custody if he proves that the mother has bad habits like alcoholic or consume drugs.