Wrong analysis, I think.
@Persian Gulf and
@Immortals are probably better at this topic. So, they can correct me if I'm wrong.
But Iran has both AShBMs and AShCMs. Iran's Persian Gulf missile is a solid-fueled ballistic missile that uses INS with IR/EO sensors in the terminal phase. It's probably been equipped with satnav too, but I'm not sure about that. It has been tested against a replica of an aircraft carrier with success previously. Although, the replica didn't enjoy the agility of a US aircraft carrier. So, that's clearly a weakness that can render it useless in real warfare. Its maximum speed is estimated at 4 Mach, and its operational range has recently been extended to 700km.
Iran also has a handful of cruise missiles with anti-ship capabilities. Probably the best one is Abu-Mahdi CM. It is a subsonic missile with a range of 1,000 km, but if fired in large numbers, it may have a chance. After all, there's always quality in large quantity.
If Iran fires, say 100-150 cruise missiles and 5 PG missiles at a carrier, then maybe it can work. Who knows?