as a good practice to avoid any holes in your logic, I also highly recommend making a variable that tracks if sound is muted or not and using it as part of your conditions that play sounds. For example:
On Player Collision with HorribleDeathTrap > Set Player Animation to "Death"
SubCondition: If Muted = false > Play Sound "Player Death"
Having a variable for Muted will help in those cases where you forget to mute or silence the sounds for some reason. When the player clicks the button that turns mute on or off, it should also set the variable Muted to true or false.