I'd back up the database first, since that would be a disaster if it didn't work properly or if you accidentally ran the query twice, but yes.
Honestly I'd create a copy of the table and then create a second login page to make sure everything works with the second table before making any changes live.