Not necessarily. Both transactions require a 9-digit number, but you will have to verify with the financial institution where you are sending the funds, if the ABA number for ACH or wires are the same, or which routing number should be used for a wire transfer and for the ACH.
An ABA Routing Number identifies a financial institution. It can be found in the bottom left section of the check. An ACH Routing Number identifies the clearing house.