No, this is a big myth. Mothers do not get any preferential treatment in court. Fathers and mothers both have a fair chance in a child custody case.
The decision is solely made on the basis of the best interest of the child.
As there is a fraction of the population of females who are formerly dependent on their spouses for financial support, there are specific schemes and organizations that focus solely on them, providing low cost attorneys for child custody.