Is generic just as good as name brand?

I bought a pack of prenatal vitamins that also has prenatal multivitamins in it as well. But I got the equate brand because it was half the price. Also,I’m taking it while ttc my first. I cut back on my caffeine intake. And trying to cut it out completely. Any more suggestions will be welcomed