Painting a cheap pot will absolutely make it last longer, as it protects the plastic from the sun degradation.But of course you're going to spend almost as much on paint as you spend on the pots.
Sinking them into the ground also keeps them out of the sun. They last 4 or 5 years at least.