Is gummy vitamins okay to take during pregnancy?

It has folic acid in it but I don't know if I can take those because it has vitamin A and that into it or I should just get the pill for it.