Correct. Find the volume of the cylinder and then subtract the volume of two hemispheres, or one sphere.

Volume of cylinder:

Volume of sphere:

Volume of the solid: