To properly paint vinyl siding and achieve the longest lasting effect, the consensus is that you use an acrylic latex paint mixed with urethane. The acrylic resins are able to expand and contract with the siding as the temperature fluctuates, while the urethane provides a protective coating.
Highly adherent latex paints are available in aerosol form, while acrylic-latex/urethane mixtures are available in cans of brush-on paint. Whether you can spray on the proper type of paint depends on the availability of an acrylic/urethane mixture in an aerosol can. Because there is some debate on this matter, it's probably best to avoid spray paints and stick to what works, namely, a brush-on latex/urethane mix.