the guy suggested just buying spray paint
Oh, goddess - No
I used to work in a spray booth in a woodworking shop (one of my many careers). We mostly did doors/jams and all the trim, stair rails, etc for an entire (new) house. Did a load (1 house) per shift, 15-25 doors plus the other stuff. These were high scale homes.
Spray cans are worthless for anything but graffiti, or maybe some small metal parts, or other various quick and dirty touchups.
Airless (essentially a hydraulic pump feeding a hose/nozzle) is really the only way to go for quality work.
I do have a little mini-compressor and cup sprayer that I bought used somewhere along the way. I've used it a few times, but after working airless I can't hardly tolerate it. For one thing, you have to hold it so that you're spraying horizontally or else you lose your flow from the cup. With wood it's really helpful to sometimes spray down to a horizontal surface.
You want a nozzle with a flat spray pattern, not a random mist (spray can). Shoot in rows up and down (or back and forth, if work is flat) and overlap 1/2 row each pass. Angle nozzle to cover the corners at the edges.
We sanded, stained, sealed, sanded again, and applied two coats of hot laquer.