We all wern't made fun of in high school. Some of us even had plenty of jock friends and stayed away from the "introvert hate everybody clueless programmers group".
And there's one really cool thing about being a "nerd": You learn a lot about a multitude of subjects. Because of that, you can learn of the interconnectedness between subjects. It's what I did, and I was able to help, say, a few cheerleaders on their advanced chemistry course, or watch a film while "critiquing" it.
I also taught a few of these students biology... no no no, not sex (no, that would be a bit later). Winemaking. I mean, if you want to be popular, you stand out. Even if it is a 'little bit', you make yourself memorable. People of all sorts will look past general quirkiness if you're a cool guy.
The toughest group to join was that nerd group, at least in my HS. I assume it was a mixture of not trusting or they thought I was too stupid. My SO however had a completely difference experience, in which there was really no real cliques (there were, in name usually).