Cannabis can also cause fetal harm. And fetal harm is also irrelevant here because this is a treatment for postpartum depression, I.e depression after birth, at which point there is no fetus to be harmed.
There's also no credible evidence that cannabis is an efficacious treatment for postpartum depression.
But sure, why even bother with science? Just smoke a joint...