Folic acid should generally be taken prior to conception and in the first trimester in particular as the neural tube is still forming.
Folic acid is important for prevention of neural tube defects.
It is also important in women with diabetes and on antiepileptic medication to prevent neural tube defects.
There is some conflicting evidence in the possible role of folic acid in reducing the risk of autism.