In theory yes. In reality it is highly unlikely to the point that you shouldn’t worry about it.
If someone happens to find an exploit that lets them execute code on the host machine or access to memory addresses that aren’t theirs. Then 100% they could infect everything.
Likelihood very low, would have to be the perfect storm of exploit plus permissions plus apples permissions to access stuff being broad enough that it can do what it wants.
If you are super paranoid, your Mac is taking snapshots of your disk in the background so you can always restore back every single time you do something questionable
But if you didn't have 200 configs files did you even build a project?