In most cases, yes. However, there are ways to avoid losing your files when reinstalling Windows:
Repair Windows 10 with installation media.
Perform Startup Repair and create a backup.
Recover Windows 10 Using Previous Versions/Reset This PC.
Retrieve your data from a backup.