It should yes! It will not if there are still items on the floor or something unused in the inventory as those can still save it. Thanks for playing!
Ah I see, so in theory a pill could destroy a block or something, and therefore the game doesn't finish. Makes sense - although a bit confusing sometimes :)