No. The law that prohibits discrimination in the workplace also applies to the hiring process. So even during the interview, there are certain areas that the interviewer needs to stay away from.
For instance, it is OK for an interviewer to ask some types of personal questions like, “what are your favorite hobbies,” or “what is your favorite color.” However, they are not allowed to ask you about your age, religion, gender identity, ancestry, or any question that is discriminatory as described in the Civil Rights Act of 1964.