Not necessarily. More often than not, what’s actually going on is that your iPhone isn’t talking to the battery correctly. Your iPhone’s software is in charge of monitoring the amount of battery life remaining on your iPhone. If the software or firmware isn’t communicating properly with the battery, it’s not going to display the right percentage.
Just like apps on your iPhone, your iPhone’s firmware can have glitches, too.