Yes, if a device is attacked with Apple Security alert scam, then other devices using the same network may fall into the trap of the same scam. Therefore, to avoid this, it is advisable to have strong passwords and regularly update your security software.