We are safe to assume that there is/are.
The answer have two parts.
1- How effective is the sensor package against a cooperative target? The word cooperative here means the target does not offer up any type of resistance.
2- How effective is the sensor package against a
NON-cooperative target? Moving makes the target non-cooperative. So does launching flares (infrared) and chaff (radar).
An aircraft carrier produces clear infrared contrast against the cool sea surface and its large flat metal deck produces strong specular radar returns, so item 1 is not a problem for any sensor package on the DF-21D's warhead.
Item 2 is the real mystery.
A volley of flares against infrared sensor can cover an area of several hundreds of square meters of intense and long duration infrared energy contrast against the sea surface.
A volley of chaff against radar can cover an area of several hundreds of square
KILOMETERS of intense, long duration, and variable radar returns.
https://journals.ametsoc.org/doi/10.1175/JTECH-D-12-00158.1
The target will maneuver under that cover.
Being non-cooperative is not restricted to technical issues but includes creativity in tactics and this is where China do not have much intelligence on how the US Navy conduct such operations. The warhead's nosecone will have limited internal volume which will make for a smaller radar antenna which will result in a broad beam which will not have the high quality of target resolutions common in aircraft's radar. The wider the beamwidth, the more vulnerable to jamming tactics. So now the warhead's radar must contend with active ECM against it from the fleet's escorts as well as chaff cloud. This is not a simulation that China can easily produce to test the DF-21D whereas US Navy's countermeasures tactics have been battle tested for decades.