There is learning taking place when a male engages in courtship behavior--somehow he learns by experience that after courtship rejection by females that have already mated, he does not pursue other mated females.
There is learning taking place when a male engages in courtship behavior. He does not pursue other mated females. This is after courtship rejection by females. These females have already mated. Somehow he learns by experience this.