A dirty lens will affect the image quality of your photos. Try and avoid getting dust, finger marks, and smudges on the lens, and clean off any that are apparent with a microfiber cloth. On a smartphone, a simple wipe should be enough, but with an SLR camera lens more care is required since you could damage the lens surface and coatings.