It really could go either way. If there were problems with the pregnancy, such as early labor or a spike in blood pressure, the woman could be out for several weeks (or even months) prior to the baby's arrival. And some people might just start their leave on, say, the first of the month of their due date or the first Monday or whatever, so that HR policies are more easily handled.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.