I was in High School just a couple of years ago, and this very much wasn't the case in the town I grew up in. I was still mocked and called a "nerd" disparagingly by even close family members for enjoying the game. Which was ironic, because some of them were huge MCU fans.
Maybe it's that I grew up in a very conservative area, but people still considered D&D to just be for the weird geeks like me when I was in High School (2016-2020).
Yes, the game is getting more social acceptance than it was before, and quite a few more popular people in school were expressing interest in it, but D&D still is considered kind of a niche "nerdy" hobby in a lot of the world.