The damage to the frame is definitely from a front-end collision.
It is possible, and shops used to have a tool, to straighten out such damage. It isn't always successful, though. Assume you are buying it for parts only and if the frame can be repaired then it's just a bonus.