It depends entirely on the platform — and that's the piece of information missing from the question.
Controller compatibility is a per-console matter. The same peripheral that works on one system won't necessarily register on another, and Call of Duty 2 shipped on several platforms with quite different accessory support.
Say which system you're on — Xbox 360, PC, and so on — and you'll get an actual answer rather than a hedge.