Installing TWRP using Odin will erase data or not?
It will not wipe data unless you explicitly choose to erase NAND (after which your phone would end up bricked).
Odin only flashes images into the device - it doesn't read data out. You're on the right track about using TWRP to reclaim data, just be sure to install one made for your device.