There is no ban on questions about pregnancy, but avoid them if possible, as they could be construed as evidence that you intend to discriminate. Questions about childcare commitments should also be avoided, unless you can show that they are relevant to the job requirements, and you ensure that you ask both men and women the same question.