Not quite. A standard compressor will compress anything that is over the threshold, regardless of frequency. To reduce a particular frequency, you would use an equalizer. If you don't want to cut the frequency completely, reduce the amount of cut.
I believe multiband compressors can...