Under the law, it is illegal for an employer to discriminate against a woman based on her pregnancy. Although both state and federal statutes protect women against pregnancy discrimination in the workplace, many people are not aware of their rights. This is why it is important to know how to spot this type of discrimination if you are pregnant or plan to become pregnant.