What computers are directly swapable? Can I use and 08 ECM in my 06 if they were both automatics? What about throttle pedals?

There is an 08 parts car near my house!