Despite the books' vague lip service to 90's era progressivism and inclusivity, the bones of the series are conservative and authoritarian.
It ends with a reaffirmation that the status quo is best and shouldn't be questioned.
And then there's JKR's revelation that there's a genetic component to being magical. And Europe needing 3 magic schools while all of mainland Asia only needing 1 certainly implies some things about the world.
Pretty much. Like numerous elements pertain to the existing injustices for non-human magical beings, but it's either played for laughs or the particular group is portrayed rather negatively (and with elements or statements linking them to real human beings).