Maybe, but it depends on exactly what happened.
It sounds like your SD card might have corrupted. Did you buy it from a reputable seller such as Amazon themselves, Newegg, or a local store? There are a lot of fake SD cards around especially on China/HK-based websites, eBay, and even among 3rd party Amazon sellers. This kind of thing is common for those cards as they have a fake capacity and once you fill up more than the real capacity it will either just write corrupted data, or start overwriting stuff you already have on the card. You might want to test it with h2testw: https://3ds.guide/h2testw-(windows).html
i buy it from a good website, yeah maybe, okay i'll test it