Depends. I assume stealing means that you’ve completely plagiarized others’ works. But if you didn’t, then it’s okay—maybe.
It’s kind of complicated, you know. Depends on a lot of factors. If your books are really really similar to others’ books with copyright and everything, and you monetize your books, then you might have some legal issues. Yep, might have, not will have. Like I said, it depends on a lot of factors.
I’m not quite sure, but I think chances of you getting sued for writing something similar is slim, unless you really did copy other’s work to a T.
But if it’s only inspiration, then I don’t think there’s any problem with that, unless the owner of the works you drew inspiration from want to nitpick you—don’t know about book industry, but it sure happens a lot in music.
But inspiration really is a thing. When you‘re inspired by something, you want to create something similar, right? It’s normal. I mean, look at all these isekai stories and the fantasy elements in them. How many elements are really original? The elf, the dwarf, game system, Truck-kun, etc. All these are inspired elements, it’s not original at all. Not to mention the plot, the character’s archetype, etc. These are inspirations, not plagiarism.