Is it Bad?

I had a miscarriage in Feb of 2017 now I'm pregnant I'm 26 weeks along and every time I went to the dr and they have asked if I have had a miscarriage I have always said no I just don't like to think about it so i put it out of my mind as it didn't happen I was such in a bad place I was depressed so much that it took me months to get back to myself I was thinking suicide thoughts so I just kept it out of my head is that bad that I didn't say that I had a miscarriage?