Yes, it does. Every shape has a different volume. And most of them have a different formula to calculate the volume.
For instance, the volume of a rectangular shape depends on the length, width, and height, or a cube needs only length, whereas cylindrical objects require diameter and length to estimate the volume. Read more