Simple physics question

What? Of course friction does work. It changes the energy of the box, doesn’t it?