I think it depends how you use it. Ultimately, all pride other than human pride and pride in yourself is bullshit. But if taking pride in people who share a superficial similarity with you helps with motivation, and you do so with full awareness that it's just a cognitive trick, and ultimately bullshit, there's nothing wrong with it.
Human pride is pretty bullshit too.
I know such thoughts aren't considered PC the way saying "Black Pride" or "Latino Pride" is, but I think it's kind of cool that I share a similar heritage with the inventors of calculus or linear algebra or the transistor.