Yes, if the education/knowledge, experience/tenure, and ability are otherwise equal, both should be paid the same
Publishing salary ranges for differing candidates should be known for each position, but it can be internal (not public) so they don't feel like they get into bidding wars with competition.