Yep, depends on:
1. Your skill at soldering and assembling
2. How easy is it to open and re-close the case of the shaver?
3. Once you're inside, you'll be able to see exactly what the batteries are. Can you get some?
In my case I have had a Phillips (Norelco) for MANY years, and I have replaced its NiCd batteries several times. The case is held together with plain screws with Philps heads, so dis- / re-assembly is easy. The 2 batteries are exactly the size of common "C" cells, but with soldering tabs already spot-welded on the battery ends for connecting to wires. I can assure you that it is EXTREMELY difficult to solder directly to the end of a plain battery. Typically I have found that my shaver will run about 35 shaves on a new fully-charged set of cells, but it decreases slowly over several years until it's down to 2 or 3. On my last replacement I bought from what used to be Radio Shack and they have been delivering over 60! shaves per recharge.
In choosing replacement cells, you need to get ones that physically can fit into the space, with the same chemistry inside and the same voltage ratings. Ideally you should also have the mAhr rating pretty much the same, too.
When I do this job, I also thoroughly clean out the entire interior of the case with a small brush, including all the gears and their teeth. Then I put a tiny bit of light sewing machine oil on bearing surfaces. Removing the dust and providing light lubrication reduces motor load and increases battery life.