Do these missiles have terminal guidance, or are they indeed just ballistic? If the latter there's little likelihood they'd hit a moving target.
Depends how much you believe:
https://jinsa.org/wp-content/uploads...one-Threat.pdf
Iran’s Evolving Missile and Drone Threat
Pages 7/8.
….”Iran has adapted the Fateh SRBM family into anti-ship ballistic missiles (ASBM) like the Khalij Fars, Hormuz-2, and Zolfaghar Basir. Though unproven in combat, these systems incorporate maneuverability and terminal guidance features designed to strike moving naval targets in the confined waters of the Gulf and adjacent shipping lanes.”