Maybe not, but MS does follow the DMCA takedown process.
> "If the notice alleges that the entire contents of a repository infringe, or a package infringes, we will skip to Step 6 and disable the entire repository or package expeditiously." [0]
This is what was going on with some Grand Theft Auto mods[1] and youtube-dl [2]
So does everyone else. Only self-hosted gives you the ability to ignore DMCA takedowns because the same entity is taking liability for either not following a dmca or performing the actual copyright infringement.