I doubt pregnancy will be a problem. Theres not much - if any - privacy on a sub. Maybe the skippers quarters, but the first time he went in with a female and shut the door his career would be over.
Make no mistake about this. This, like so many other equality issues, is driven by the need to get as many female officers in the higher ranks as possible. They couldn't give a darn about the rates.