Record online music

I normally use Audacity. Help pages tell me to connect the speaker output to the microphone input. Is it possible to record directly from the sound card without connecting the speaker output to the microphone input?

Hi
Should be able to create a loop device for example: https://sysplay.in/blog/linux/2019/06/playing-with-alsa-loopback-devices/

I usually just use ScreenRecorder, then extract the audio. Quality is good for my needs.

Thank you. I think this will solve my problem and it’s something new to learn about.