Fortunately, no. The cases when ransomware spreads in the local network are related to malware circulation in the standard directories. Simultaneously attackers get administrator privileges and execute this malware on all computers in the network. However, it is impossible to get infected without letting the crooks connect to your device.