In theory yes, but in practice the odds are very slim unless your battery was defective. The next component I would look to rule out is the power supply as it's the easiest and cheapest to replace. There are only a few different designs, but make sure you buy one that will fit in your case and is at least as high a wattage as your current one.

After that, if it isn't fixed, you'll have to start testing individual components.