I did. We had 20+ year old oak cabinets that were disgusting in every way. They were too dark to stain. I couldn't afford anything else.
First I got a couple of those sample cans (they're tiny, only cost a couple of dollars, from places like Home Depot and Lowes). I asked the paint dept person about what finish would be best in a kitchen, for purposes of washing them, keeping them clean, light reflection, etc (they have different finishes like satin, eggshell, etc). I took his advice, but chose my own color.
I painted a couple of swatches on the cabinets, so I could see if I liked the color from all over the room, at different times of day. The swatches were not big, but big enough to view. I let myself have a couple days to get used to them. It turns out that they looked like a completely different color on the cabinets due to the oak, so I went back to the paint dept. They sold me a primer. I didn't know primers came in different colors. I ended up needed a gray-tinted primer. With my cabinets and paint color choice, gray was absolutely perfect and the color came out great.
A friend and I emptied the cabinets, cleaned them, took down all the cabinet doors, and took off all the hinges and handles, and first we primed/painted all the cabinet frames and sides. That was day one. When all that was dry all the dishes/glassware could go back in and I didn't feel like I was living in a warehouse.
We spread the doors out on huge paintcloths. We primed and painted them all, front and back. The one thing we bought besides paint was new hinges and handles.
It was 100% worth it. It wasn't a huge kitchen, and the paint required wasn't that much. Getting the new hardware was well worth it too. I would suggest telling a paint department person what you're going to do and taking their advice about preparation, etc.
The whole thing looks great.