depends on how your Audio sources are set up
If you have separate Audio Source, then easy-peasy
BUT, If you are using the default Desktop Audio as a Global Audio source, there is no way for OBS Studio to know which application is the source, and it is up to you to Mute (at Operating System level) Apps/Processes you don't want outputting to Desktop Audio.
Application Audio Source is one approach, but it is BETA and known buggy (not usable for me, in my specific setup, for others it works fine)
Other things I've heard of is Outputting specific Application Audio to specific Audio devices, and then set up those specific devices as Input Sources in OBS Studio. Then there are other virtual audio routing software approaches