Folic acid

What is folic for ? And can pregnant woman only take if