Is it gender discrimination if we pay the new (woman) in a particular role less than we paid the previous (male) employee?

Potentially, yes.  Gender discrimination can include pay disparity.  However, if there are other factors, such as seniority, merit, quantity or quality of production that explains the disparity, the difference in pay may be defensible.

ASG Law offers legal advice for employers.