If a parish requires that a child is born before baptismal preparation is done it is in violation of Canon 867.1.
We strongly encourage parents to do the preparation as soon as they find out they’re having a baby. The longer they wait, the more “things that need to be done” crop up to compete for their time.