They can't ask about your pregancy, but they can rule you out thinking of this woman can stay home for a year. To me, you still stand a chance to get the job if you keep it open.
Having a baby changes a lot. Think twice about work and family. Don't lie to hiring people. Good luck.