Yes, actually. The CN ion grabs an electron from something like a metal or hydrogen to get that negative charge. That's why CN doesn't really exist, but NaCN, LiCN, KCN, RbCN, CsCN, HCN, etc. do exist. The metal/hydrogen donates its electron to the CN ion forming M+CN-.