Installing portable washing machine inputs using permanent hookups. Can I do this?

I am going to purchase a portable washing machine and would like to do a semi-permanent installation for the water inlets. The washing machine will be located next to my water heater, so I figured I could tap hot and cold water from there.

Could you please look at my schematic and let me know if there is any reason why this won't work? I don't see why not but figured I'd check here first. My only plumbing experience is basic home-maintenance.

https://preview.redd.it/gpawpl9k5vie1.png?width=1189&format=png&auto=webp&s=d7aab79f760995371804ca939fe787058597589a