Sure it does. But when you go to your doctor's office and tell them you are pregnant and have a raging case of pink eye. Chances are the doctor is not going to prescribe you something that is going to be harmful to your child.
And, if you aren't far along enough to be obviously pregannt and 'showing', you should inform your pharmacist when you get your prescription filled that you are pregnant.
If you tell your doctor you are pregnant, if you tell your pharmacist you are pregnant, the risk of getting something that is harmful to the fetus is very low.