No, it is only needed if it is one of very jobs that is gender specific. Employers have to obtain special exemption for them and advertise as such. During a job interview an employer cannot ask your age, gender, marital status of whether you are pregnant (if female) of if you plan to have or have a family. If someonw does refuse to answer the question, in fact I would go further and just tell them that the question is not relevant.