Yes floating mussels are dead.
When the mussels float they are either dead or empty and if the mussels float they are bad and should be thrown out.
The mussels should not float and if the mussels do float it's an indicator that they are bad and dead and should not be eaten.
Eating already dead mussels even when cooked can make you sick because they can contain bacteria.
Partly opened mussels can also be dead and to test whether the mussel is dead or not squeeze the mussel shut and if it stays closed then it's good and if it does not stay shut then it's bad and should be thrown out.