Iran can do a lot more than that. Iran has enough anti-ship missiles to sink any carriers US bring nearby. US will not be able to strike Iran without damage. People should realize that Israel is the most defended airspace in the entire world. Not even China or Russia has that level of air defense density and Iran penetrated that. No one is safe from Iranian missiles.
This is a great point! I have my doubts on the strength of Iranian anti-ship missiles though, especially the claim to be able to sink a carrier. Sinking a carrier is kind of like the holy grail of achievements in modern anti-ship warfare.
China has spent tremendous sums of money and talent on solving this problem and has come up with a layered system to do so. Iran just doesn't have the electronic warfare, remote sensing or layered anti-surface warfare systems to guarantee such an outcome. Certainly it could be possible, but in no way is it guaranteed.
EDIT: Is the Israeli play to try and draw the US into this conflict on their side?