I feel like a bad mom!

I haven't taken my prenatal for the past 3 weeks I'm 27 weeks now. Even before then I would forget to take them for days. I just went to my DR appointment and found out I'm anemic. If I had been taking my prenatals everyday like I should have been could I have prevented this??