can you use a computer without the escape key
Yes, easily enough, though you'll definitely notice it's gone once you want to drop out of full-screen YouTube or dismiss a stubborn pop-up dialog box. It really functions as the computer's universal cancel button. If a webpage freezes up mid-load or a right-click menu won't vanish, Esc is usually the fast way out.
Coders and gamers have it much worse. Terminal editors like Vim practically require it just so you can switch between plain typing and running commands, and almost every modern PC game sticks the pause screen or settings on that key. Apple actually had to bring back a real physical Esc key on MacBooks because people hated the Touch Bar version so much.
Don't buy a new keyboard if the switch itself died. Just remap another key you rarely touch (Caps Lock or the tilde key works great, since your left pinky sits right there anyway). On a Mac, you don't even have to download software: go to System Settings, click Keyboard, hit Keyboard Shortcuts, pick Modifier Keys, and set Caps Lock to act as Escape. On Windows, grab Microsoft's free PowerToys utility to do the same thing across the whole system.
You can also get around it with plain mouse clicks or the back button. And across most Unix terminals and code editors, pressing Ctrl plus the left bracket works as a built-in replacement for Esc anyway.