Software ID depends on some data stored at the beginning of disk, so you definitely must not format it using non-MikroTik tools. But installing new system from official iso should not break it (it worked for me in the past).
Using mikrotik tools should preserve it, but it's always good to just make a disk image in case something happens... with x86 and regular drives it's easy... then you can always roll back.