Can we just swap these two valves?

The person who installed our dishwasher has it connected to cold and I’d like to swap it out so this 3-way valves on the hot side.