No. It was when I was younger and I smacked the keyboard at some point. The whole computer crashed with random pixels all over the screen. I tried rebooting many times. I came to the conclusion the cable inside of the keyboard must have been slightly disconnected and pushed it further back into it, and my PC worked again.
Computers are really resilient to permanent damage to be honest. I once dropped a screw into a running computer and it short-circuited with sparks and all. I was still able to boot it, but it was extremely slow. After a few reboots it was back to normal.
Your story reminded me of when I set my pc on fire!
No idea how or what happened but the PSU shot sparks, lit up and tried setting the house on fire. Amazingly everything worked right after replacing the PSU, but the Mobo was the next thing to blow up.
So while they are indeed resilient af, you're likely not coming out unscathed if sparks fly.