It depends on where you turn off the volume, and on the settings on your device.
If you use the side switch for muting your device, it will mute alerts and notifications.
If you turn off the volume with the button/s next to the side switch, this also mutes them.
The volume slider in Control Center doesn't mute them.