This question already has an answer here:
I read this story I think in an Isaac Asimov short story collection - not necessarily his.
It’s about a world where reproductive organs where converted to produce all kinds of materials.
The protagonist is pregnant and kept the option to give birth and nurse.
She studies something. In the end she gives birth to a starship main computer and receive a letter that gives her the happy news that she finished school and found fit to be a mother.