Yes. I painted the flyscreen on my Buell last week with rattle cans cause I didn't wanna clean my spray gun
prep it just like you would if you were repairing exterior metal on your car for paint-there are no shortcuts
use a primer sealer, but before spraying you must wipe down the part with a solvent to get it clean and grease and oil free. Do not touch with bare hands after this step.
you must work in a dust free environment-I make a makeshift paint booth with 2x2's and plastic sheeting sometimes, but this time I just lightly hosed down the basement floor and accepted the fact that I would probably have some trash in the finish.
2 coats of primer/sealer allow to dry completely and then some, lightly wet sand with 600 grit or finer to remove any imperfections, wipe with solvent allow to dry completely again and repeat with your paint, two coats 15 minutes apart, if runs etc, let dry 2 hours and clan up with 1000 grit or finer, then 2 more coats, follow up with a final wet sand with a sheet of 2000 grit and move to a clear coat if desired and shoot as many coats as you want to make it look as deep and shiny as any new part.
now it doesn't take near as long as it sounds, but it will probably take two days between cleaning priming drying sanding cleaning priming and drying but if you want it to look flawless it can be done.
Now if I was going to do an air cleaner housing, I'd wet sand it , clean it with solvent and go straight with a high temp paint, 3 coats with no sanding between, clean up imperfections with 1000 grit, two more coats, 2000 grit dry a few days and a coat of wax-it would look damn good-but maybe not absolutely perfect.