Yes. If they are older IDE type drives, there will be small jumpers on the back of them to set, There will also be some letters near the jumpers, or a diagram on the disks label.
If they are SATA drives, just plug the new one in. SATA has no jumpers to set.