To add to Youval Weissler's Correct Answer, one can indeed choose the shape of the surface of a thick lens to eliminate spherical aberration for one configuration of input rays. For example, with a collimated input beam parallel to the optical axis at one given wavelength, one can choose the shape of the lens to eliminate all aberration and all the rays in Yuval's diagram would converge to a point. But in general there would be spherical aberration: if the collimated beam were tilted to shift the focus to an off-axis point for the system designed to be aberration free for the on-axis collimated beam, there in general will be a small aberration (including coma). To focus an on-axis collimated beam without aberration calls for a plano-convex lens (as in Youval's answer) whose curved surface is nearest the focus and which is a hyperbola of revolution about the optic axis.
In general, one can design to eliminate all aberration for the image of one point source at one wavelength. With the use of stacks of different dispersion behavior glasses, one can also eliminate aberration at the same point at several wavelengths. Very few systems give aberration free imaging for point sources on a whole object surface; the Maxwell Fisheye Lens is a rare example of such a system, as is an Aplanatic Sphere. Most such examples are lenses whose refractive index is a smoothly varying, complicated function of position within the lens.