Sure, the "stupid" is effectively "unintelligent" in that context (unless I'm being stupid here ;-)
My point is that even intelligent people can be incredibly stupid and Dunning-Kruger can still apply (because they know they are intelligent and are too arrogant to question their positions)