When my water heating was electric, switching to a dishwasher consistently led to lower electric bills compared to a year prior (confirmed for 12 whole months).

You save water and electricity.

But can you put dishes with food on them in the dish washer?

Yes.