Yes, the PC version of Call of Duty 4 works with Windows 7.
In fact, most people who play Call of Duty 4 on PC these days are running it on Windows 7 without any trouble. So you should be able to install and enjoy the game smoothly on that operating system.