The only problem I'd ever have with keeping a car like this is that I'd be continually worried about the state of the rest of the running gear. Things like three months down the line when both dampers on that side start leaking, then a spring snaps, then it starts tracking incorrectly, random electrics start playing up because the connectors or wiring's been chafed...
I'd be most inclined just to get shot of it, personally. I had a Jeep like that once and I was never happy with it afterwards. Just wasn't the same. The faults need not even be attributable to the incident but they just set your mind running about what's next or what else is wrong.
RE your code, you might find that the catalytic convertor or O2 sensor have been damaged by the impact. Does the car still sound the same? Could have a minor exhaust leak somewhere.