An employer may not lawfully agree with a union to hire only union members, but it may agree to require employees to join the union or pay the equivalent of union dues to it within a set period after starting employment.