Yes. Walk/ride/drive/type yourself to a store and get a new one. j/k...kind of.
If the metal connectors have actually come out of the mini-din...I don't know if they can be put back in or not. If you just try placing them back in their correct positions, I can't think of a way to secure them there... I wouldn't want to leave one of those connectors inside my ps2 port!
Keyboards are fairly cheap (unless you get the fancy ones) and I'm not sure they are worth the effort/risk, but then again, maybe someone who actually knows what they are talking about will come in here and tell me to shut up...wouldn't be the first time (wouldn't be the first time i ignored them either

).
now, if the pins are just *bent* you can easily bend them back into position. YMMM but this has worked for me in the past (this could depend on just how mangled the pins are...)
good luck!