I think it's ethically unjustifiable but raises an interesting point.
In a perfect justice system we'd have the ability to look deeply into the lives of those involved and the circumstances of what happened. We'd make sentencing decisions that took this into account and balanced justice for the victim with punishment for the offender, the risk to the public and the likelihood of genuine rehabilitation.
Many wormen have trauma as a contributing factor to their offending. Meaning some don't have the same impulse control as those without due to impact on the physical brain and cognition. The prison reform trust says this:
Many women in prison have been victims of much more serious offences than those they are accused of committing. Over half the women in prison report having suffered domestic violence with 53% of women reporting having experienced emotional, physical or sexual abuse as a child.
There is an argument that in a patriarchal society that places women at this higher risk, it is only right that sentencing considers it as a mitigation. Far better to tackle DV and SA of course.
However, women are just as capable of committing cold-blooded murder as men. Where there is no evidence that these factors come into play, they should be treated just as harshly.
I don't think anyone has the right to have children and I'd actually argue that anyone who has behaved in a way that results in them being put in prison for a long time (it's very much a last resort these days) probably shouldn't be having children anyway. Even if fully rehabilitated on re-entry into society there will be compounded trauma from being in prison and difficulties in reestablishing life outside etc that makes it highly unlikely they will have the skills and support to provide a stable upbringing for a child.