No, not necessarily. It can be the SMC, the Power Supply, or even the Logic Board. First try resetting the SMC (unplug the power cord, hold the power button for 5 seconds, re-insert the power cord) and if it doesn't work, try changing the PRAM battery.