Hi,
Yes, as the Q&A Assist notes, you can—as a precaution—write down your product key; this allows you to use the same license you already purchased if you perform a clean install using the USB method.
To note down your current key, you can download ShowKeyPlus to save your license details for extra security.
https://apps.microsoft.com/detail/9pkvzcprx9nv?hl=en-US&gl=US
However, if you reinstall Windows and it does not activate automatically (in the case of a digital license), you can try the activation method for after a hardware change.
https://support.microsoft.com/en-us/windows/activation/reactivating-windows-after-a-hardware-change
Please consider rating the question (accepting the answer or not) and visiting the Microsoft Q&A community if you have further questions.
Thanks