It’s illegal to discriminate against an employee because she’s pregnant, under federal law and most state laws.
In order to know whether you might have a pregnancy discrimination claim, you have to know whether or not your employer discriminated against you because of your pregnancy, treated you differently in some fashion because you’re pregnant, or because you have pregnancy-related complications.
Being pregnant doesn’t give you total protection from being fired or from being disciplined. If you’re being disciplined or fired because of your pregnancy or because you had to take time off work for a pregnancy-related problem, health problem, then you may well have a pregnancy discrimination claim.
If you think you’re being discriminated against because of your pregnancy, you should consult with a lawyer who can help walk you through your situation.