Yes, Pex pipe can be used for a washing machine. For hot and cold water supply to the washing machine, there are two different colors of PEX available.