Yes. Do a full export. Keep a copy of the resulting dump file. Do your reinstall, create a new instance, then import the dump file into that new instance.
Note. You should always test stuff before doing it for real, so you will know exactly if it works for you or not, before you actually trash something you care about.