Close. But the barrelhole is 9 millimeter.
It's the width of the bullet. Bullets are measured in Caliber and Millimeter, however the barrel is usually the width of the bullet, so that's technically correct. Inversely, shotguns are measured by the width of their barrel instead.