Is the degradation in sharpness due to diffraction simply a function of the wavelength of light and the physical size of the aperture opening?

Will two lenses of the same focal length at the same aperture be subject to the same resolution limits posed by diffraction? In other words, does the design of the lens matter?

Thanks,
Vijay