This will disadvantage women of child bearing age in the workplace.  To assume that it will not is burying your head in the sand.  I am sure many employers will find a way to hire a 40 year old male to train and invest in over a 24 year old female.  This is reality and I know there are some who find reality and common sense extremely offensive.