In short, yes. I assume you mean to plug a (regular, desktop) keyboard in as replacement, of course.
[And, at this point, I went on and became ninjaed...]
In long, I
think most laptops can have the keyboard alone removed (and replaced, which is what maybe you ultimately want to do - eBay may give you a make-and-model replacement unit, or a screwed-for-other-reasons laptop that you can unscrew and use for spares), although exactly how the bits come apart is vendor (and model!) specific. May be a single screw out of the bottom, lever and release the ribbon-cable, could be taking the shell apart to reach the keyboard anchor and wiggle the in-line plug off the mobo pins, could easily be something else.
If it's just
some keys then you can sometimes get new key-mounts/switches (doesn't sound like you need new keytops), but if it's an entire-keyboard-only problem maybe you can do as suggested. It may change the internal ventilation scheme to run continually without keyboard in place (or not) but if you dissassemble enough to de-ribbon, the now inert unit can be put back as well, I suppose.
(Check that trackpad/whatever still works if that's on a separate connector but the same subunit. Or even if its own thing. This is generic information, and proprietry construction/connection methods may confound my expectations of what you'll find when you actually dive in there. Or also add a third-party mouse, and when the screen goes use a monitor.
)
You'll probably find a "How to fix <your make, your model>" video on Youtube, or other repairer's resource site, which you can use (half of) to get an idea exactly which torque wrench to strike against which USB port to find the Ark Of The Covenant, right? And if it gives no results or dire warnings against trying then maybe that's useful to know too.