While there are no strict rules prohibiting placing washing machines in bathrooms, it should be noted that water and electricity can be a hazardous combination. Generally, it is safe to keep the washing machine in the bathroom if the plug and socket are protected from water splashes.