Spray paint (meaning the stuff you buy in cans from stores) is incredibly weak and the helmet would only look good for a week at most, then it would start flaking and wearing away.
Car spray paint though is incredibly heavy duty and as Kev said, It'd have a good chance of damaging the helmet.