Good prep work (sanding, caulking, repairs, etc) is the foundation of everything in the finished work. Not only in what you see with the final paint but also in the longevity of the paint. After all, painting is far more than just for appearances.

Everything from caulking.....

to cutting in.....

to repair work.....

It's all important.