Yes, you'll be wiping all the data off the phone so you'll need to set up again. You can use Samsung Smart Switch to back up your phone and restore it after, however, it won't put everything back in place, so there will be leg work to do.
In order to do it, shut off your phone then hold the...