Yes, depending on the condition and the current mortal danger present to the mother and the child.
If the mother’s life is truly at risk and needs emergency treatment and there is no ability to wait until the child to develop enough for the possibly to be delivered early and have a chance at life, then the child is already in mortal danger; if the mother doesn’t get treatment, then they both will die.
If the choice is between delaying a treatment for the mother to allow the child to be delivered with a increased chance at survival but decreasing the mother’s chance at survival, or proceeding immediately with the treatment for the mother an immediately resulting in the death of the child, then I would say this scenario is significantly more complex because of the self sacrificing aspect of it.
For example, like a mother trying to save their born child from an attacking animal, or trying to rescue them if they have wandered into traffic, a mother taking self-sacrificial actions to try to save their child from death or harm is a sacrificial and morally good act.
As Jesus tells us,
12 “This is my commandment, that you love one another as I have loved you.
13 Greater love has no man than this, that a man lay down his life for his friends.”
The child’s status of not yet being born does not decrease the nobility in the mother placing herself at increased risk for the benefit of their unborn child.
I think that in this, one of the most morally complex of decisions possible for someone, I would say the most selfless, loving, and Christ like choice for the mother would be to do everything possible to give the child the greatest chance at life, even to the detriment of her own well being.
Without an immediate emergent risk of death for the mother (and by default the child as well), I find it much harder to qualify as more desirable the acting in a self interested way at the expense of an innocent child’s life, though this does not necessarily render the act as immoral.
The mother’s moral culpability could potentially be drastically reduced or non-existent because of the circumstances, but as for the acts themselves, I see in the two choices the assessment of morality being:
-acting in a selfless way that would be morally good
-acting in a self serving way that would (depending on the specific action and it’s directness) be a lesser moral good or morally neutral at best (treatment that increases risk to unborn child) to morally reprehensible at worst (outright abortion).
I pray that the Holy Spirit give peace and wisdom to all women who find themselves in such heart-wrenching scenarios and gives them the courage to seek and find inspiration for their decisions in the teachings of Christ.