It’s really easy to restore a Samsung phone with Odin on Windows (download the stock firmware on sammobile and save it somewhere by the way).
So if you don’t try to flash a TWRP that isn’t for your device everything should be fine.
Here is a tutorial if you need it (turn on OEM unlock in development settings to increase the chance of success) :