Do I have to disclose that I’m pregnant in a job interview?

I just got a job interview. I really need a job right now. (I’m almost 12 weeks) I know the law says I don’t have to disclose but should I out of courtesy? The lady who called to set up the interview asked me how long I was going to be stationed at my current military base (my husband is active duty, I’m not) so that made me feel like it’s an issue with longevity of the job...and If I need maternity leave then I don’t know. I don’t want to waste anyone’s time but I also really need a job.

Any advice?