The question itself is fine, don't worry.
You're never 100% safe if you have used CFW on the Switch. But yes, restoring and the upgrading the official way is often the most safe way to play online. But then you burn fuses.
EDIT:
https://gbatemp.net/threads/nintendo-switch-banning-hub-warning.508710/ here you can read what people have been banned for.