Yes, malware can cause an inaccessible boot device in case it corrupts your boot files. In such a case, you must run a system check or reinstall Windows to fix your computer.