short answer - yes, fix your audio routing .... but that doesn't help you, does it?
You have NOT provided any relevant info, especially the OBS Studio log per the pinned post in this forum (link in my .sig)
And even then, you also need to adequately describe audio routing at the physical and operating system level (as all of the above needed info to solve issue)
OBS Studio, as typical free, open-source software, usually does NOT include proprietary/patented software solutions, like noise cancelling.
So you can't have a active mic, and speakers outputting and capturing Desktop Audio (or anything else that where MIC input ends up being heard in speakers (a loop)
Solving that can get really tricky depending on exact specifics, in part due to Operating System audio subsystem limitations (/inadequacies). OBS Studio's Audio Application capture will hopefully, eventually, be a viable approach, but at the moment can often cause more problems than in solves (apparently due to OS code/API limitations?)
Be aware this can (maybe, maybe not) get technically complicated to solve