As for cpus no, its done in the bios software.
Most gpus are software oc though, so unless the softwares running, the card isn't overclocked.
With GPUs though, you can flash an oc into a gpus bios.. basically like the manufactuers do for their 2 or 3 models of a card.