No surprise that something that affects your brain may affect fetal brain development! Doctors do treat depression in pregnancy with SSRIs. But you should be informed of the risks beforehand.
From Medscape news:
March 2, 2010 — Antidepressants may permanently or reversibly affect fetal brain development depending on the timing of exposure during pregnancy, according to the results of a study reported online February 22 in the March issue of Pediatrics."In animals, antidepressant exposure in early life causes changes that persist into adulthood," write Lars Henning Pedersen, MD, PhD, from Aarhus University in Aarhus, Denmark.