Yes, you can use the washing machine inlet pipe for the dishwasher too, just make sure you use filter (usually comes with DW) between the tap and inlet pipe.
I'm using similar setup myself as the pipe i received with the DW was small w.r.t dishwasher location ended up getting a 3M washing...