We wouldn't recommend that, as washing machines have parts made of plastic and metal. They also have electrical parts like motors, circuit boards, etc. Splashes of water can corrode the metal and can be risky if water comes in contact with electrical parts. No matter how big the bathroom and how far you plan to keep the washer away from the shower, it is not recommended to install it in the bathroom.