That would go a long way to correct for differences resulting from maternal leave, but there would still be issues such as single people, and especially single men, being favored (since it is rare for them to have a child who they must then take mandatory leave to care for).
I remember reading that gay men suffer a penalty to straight men while gay women have a boost compared to straight women. I wonder if that is related child care expectations when they do adopt children.