Does this have any validity as to Canon Law?
Indeed.
Marriage, according to Scripture, has both a unitive and a procreative aspect.
A person who is involuntarily infertile can still participate in the unitive aspect of marriage.
A male who is permanently impotent can participate in neither aspect of marriage, and is therefore incapable of validly contracting marriage.