2001 civic ECU blown. Is this junkyard one compatible since I can't find one with exact matching numbers?

ECU in my 2001 civic blew because the alternator bolt wasn't completely tightened after timing belt job. Old ECU numbers is 37820-PLR-C53 (2001 civic ex auto Vtec) Junkyard ECU 37820-PLR-C56 (2002 civic ex auto Vtec). Will the junk yard ECU Work after the immobilizer is programmed by Honda

We ran into a similar problem with my step-son's old Mazda… Couldn't find an exact match for his failed ECU at any of the local salvage yards and never could get the car to run again. The dealer's shop wanted more than the car was worth for a new one, so we finally sold the remains to the local junk yard and had it towed off.