You may have a case. It's important to show a nexus, or connection, between you being "laid off" and being told you wouldn't get a job opening. Preserve your rights immediately and contact an employment/civil rights attorney.
You may have direct evidence to support a discrimination claim based on sex and/or pregnancy. I suggest contacting a plaintiff's employment lawyer right away. There are time limits to pursue claims, and you need to protect your rights, including unemployment and benefits issues.