depends how ur overclocking.
if your increasing the fsb/bclk, then it increases all componants as they are all linked to it.
some cpu's you can clock by them selves by increasing the multipler for the cpu, althou this only works on some cpu's
some motherboards, especially the more expensive ones that are designed for overclocking, you can adjust the memory speed seperatly, or change the multipler for the memory