Can a teenager be fired from a job while pregnant?

It would be considered discrimination.