Yes, of course. They're the workers' representatives. They have an obligation as the workers' representatives to take those pay equity concerns to the bargaining table. That does not mean, however, that the discrimination that results in an employment context is the union's fault in the same way that it's the employer's responsibility.
To say that unions stand in the same position as the employers is not sensible.