BIOS Code is flashed at production. It is written in low level C machine code. If a worm can replicate this low level C code and flash itself into BIOS memory at boot time before POST, then yes, you can corrupt a system to a point of unbootable state. These kind of worms are however very rare...