Capture System Audio on Mac

Is it possible to capture system audio on a mac with the screen capture tool? It seems like it’s not possible without also capturing the microphone, or perhaps it just captures system audio via the microphone. When the mic icon is disabled, no audio is captured.