Doesn't "cause" it
But some viruses that cause lung infection may start as what appears to be a cold.
Moreover, colds often turn into bronchitis
which is mistaken for a lung infection. Finally, some people have poor immune defenses (smokers for instance) and get both colds and pneumonia