Sure. Why would you invoke rm if you weren't trying to delete files?
I think a better analogy would be "I tried to use an ide and it erased my drive"