Yeah, by doing the CMD+OPT+X+O you can boot into the OS without any disks at all. If that fails, you’ve got some other issue. If it succeeds, you should be able to access the HD and install a new OS or repair the existing one.
Of course, you’ll need a working keyboard for that.