It's not really the same thing. Naruto wasn't tied up or in punishment like he was as a genin. Sarada simply remembered that she had his food. However Sarada is very different than her mother when she was a genin. She's more like adult Sakura. Her personality is basically a mixture between Sasuke's and Sakura's. She has Sasuke's determination, introverted nature, and bravery. While she gets Sakura's loving, sensitive and thoughtful nature. Basically Sarada gets all of the good characteristics of their personalities and doesn't get any of the bad. She's neither selfish nor is she cold and heartless to her friends like Sasuke was.