No, it is unlawful to terminate someone’s employment based on pregnancy. If you are sick during your pregnancy, you are protected by law from being fired for it.
Employees are provided with a certain number of sick days throughout the year. If you are facing an illness that would force you to take more than your allotted sick days, you may consider taking a leave of absence in order to protect your employment.