Plug gap

Is there a difference in setting spark plug gap between a stock engine and one that's .040 over, cam'd, etc..?