It is possible the ECU is bad, and I've had it suggested before. However, being an electrical engineer, I find it very unlikely that an ECU would just "go bad". They should be one of if not the most dependable electronic component on the car. I would be inclined to suspect many other parts before giving in and replacing the ECU as a last resort. In my case, I don't have any strange codes to suggest it, just strange operating characteristics.
All that said, strange things happen and it very well could be the ECU.
Mine: 2004 Subaru WRX Wagon: 116k, WRB
Gone: 2002 SVT, #1654
Hers: 2012 Focus Ti Sedan: 67k, SGM, Manual