Very yes. They could reveal their location for starters, which could spoil a mission and put lives at risk, but if they use the same device on both this and the ships network, you risk compromising the ship’s network or even the Navy itself, giving our enemies all kinds of sensitive info.
We are in the midst of a world war being waged in cyberspace and the US is losing. Incidents like this are a genuine threat.
“The side that stays within its fortifications is beaten”
Napoleon Bonaparte
Not only do you need to strike at the enemy’s territories and hold it to win, you need to threaten to keep it if you want to restore your original borders. Going to the peace table with enemy cities your pocket is a classic way to negotiate for your own land back. The more Russian land the Ukranians take, the more likely we will see a restoration of old borders.