Using an Xbox controller with the PC version of Call of Duty 4 is possible, but it typically requires additional software to map the controller's inputs to keyboard and mouse commands. There are third-party tools designed for exactly this purpose, so with a bit of setup you can get your Xbox controller working in-game.