It was reported in July 2005 that the US Navy using an F/A 18 and a JDAM bomb scored hits within two meters of a moving "Land" target.
If you can hit a moving Truck or Tank I have to think hitting a Ship is entirely feasible.
How you achieve a "near miss" on purpose might be the harder part of the problem.
However....if you "miss" and actually "hit" the ship with a 2,000 pound bomb....that alone is gong to cause the ship a serious Damage Control exercise that may or. may not be successful.
So why the debate about whether said bomb will work or not if employed in combat?
Would we be. having the same discussion if it had been the RN and the F-35?