Every iPod/iPhone cable should should be compatible for charging other iPods/iPhones, except the first gen iPod which used standard firewire instead of the iPod connector we're all so fond of now.
Not every one will work for playing music through or transferring data (ex: firewire/30pin cables on the newer iPod models, some iPod docks/connectors with iPhone)