Intersection between shape and surface

Hello Users,

I'd like to model a cylinder in which both ends are portion of spherical surface.

Is it possible tu cut a cylinder shape with a spherical surface to get that result ?

Thanks for your help !

John