Not quite, at least nationally in the US. The National Labor Relations Act only bans prohibiting employees from discussing salary with other employees of the same company. Prohibitions on discussing salary with people outside the company are fine.
Also, it does not cover contractors or supervisors.
Some states may have more extensive prohibitions.