Yes that should work. Thank you
The new code looks like it had changed a lot but the added code is just a few default hard coded widgets so novice users have something in the sidebars even without adding widgets, i.e. a Meta Widget with login link.