Yes, what you’ll want to do is open the file data/raw/monstergoups.json, and replace any monsters you don’t want to spawn with monsters you do want to spawn. I’m not totally sure what will happen if you remove a particular group entirely, but I THINK if you change the default monster to “mon_null” and empty out the “monsters” list for the group, it will no longer spawn anything.
So for example to not spawn anything in houses, it’d look like:
{
"name" : "GROUP_HOUSE",
"default" : "mon_null",
"monsters" : [
]
},