The flying while pregnant is dependent on multiple doctors and a risk case.
I recently was flying with an FO who was in the last week of her third (thingy) it wasn't very comfy for her.
The route was a coporate bus service and the customer was more than happy.
I must admit it does put a new dimension on pilot incapacitation.