I'm describing how trademark works. And yes, it does a lot of that.
Mind you, the trademark owner can authorize things. And I think there is even some analog of fair use for trademarks, but you should consult with a lawyer if you ever have more than an academic interest in such things.
In other words, you're free to do anything you want with the Harry Potter movies, so long as you remove all instances of the name "Harry Potter" and all likenesses of Daniel Radcliffe wearing a robe?