Having an ICBM makes India safer. ( Considering the fact that China is a militarily aggressive neighbour and we previously didn't have the capability to strike them )
The reported range of even the MRBM-class Agni II can reach most of China from eastern India. The Agni III and Agni IV IRBMs were easily sufficient for holding China at risk.