We have used Resonant Inelastic X-ray Scattering (RIXS) and dynamical susceptibility calculations to study the magnetic excitations in NaFe$_{1-x}$Co$_x$As (x = 0, 0.03, and 0.08). Despite a relatively low ordered magnetic moment, collective magnetic modes are observed in parent compounds (x = 0) and persist in optimally (x = 0.03) and overdoped (x = 0.08) samples. Their magnetic bandwidths are unaffected by doping within the range investigated. High energy magnetic excitations in iron pnictides are robust against doping, and present irrespectively of the ordered magnetic moment. Nevertheless, Co doping slightly reduces the overall magnetic spectral weight, differently from previous studies on hole-doped BaFe$_{2}$As$_{2}$, where it was observed constant. Finally, we demonstrate that the doping evolution of magnetic modes is different for the dopants being inside or outside the Fe-As layer.