“Will the Iranians attack them with shore based anti ship missiles?” Hopefully, yes. At that point the Navy is unchained and kicking ass.
And if those ships are attacked with anti ship missiles, will the attack be easily repulsed or will the Navy lose ships and suffer significant causalities? What effect will that have on the American people, and the world? This is the time to consider these questions.