Yep, it definitely is! I mentioned type 1 because I have it.
As a contrast -- the point was that nobody judges me for having type 1 the way they judge people for having obesity.
As an aside, I notice that sort of "lifestyle/willpower" type framing in discussions about type 2 also.
There are varying degrees of control over outcomes. The judgment comes from the correlation between an unobserved variable (effort at controlling or preventing obesity) with the observed variable (actual obesity).