That is the "goal" of dna as far as a non thinking entity can have a goal. It's deeper even then males and females. Dna that reproduces more frequently and consistently ends up dominating it's environment. How the dna accomplishes that is what changes, whether it's by reproducing in higher quantities, or making adaptations to have the organic payload carrying the dna get more opportunities to reproduce, or some other solution
Biologically a baby may be male or female at similar probability. I think your argument is flawed, as it implies that the only goal of males is to impregnate as many females as possible and nothing else.