No? It's significantly smarter and easier to use AIS.
replies(2):
With your logic all I have to do is take the additional step of disabling your cellular infrastructure before I steam up to your port.
This is not a tactical solution. It can only be for convenience or cost savings. In that realm, AIS is the obvious answer.
Again, probably easier to destroy 5g cell tower infrastructure than dedicated military installations.