I'm sure it does, but I speak from experience where there wasn't much of a difference in volume between the earpiece speaker, and the speakerphone. Most people had their earpiece loud enough that if I was close enough I could hear it just as loud as when they used speakerphone mode.
With a lot of (cheaper) phones the speaker is also terrible enough that the different modes don't make much of a difference.