The use of covid vaccine reduces the future risk of COVID-19 related pneumonia

For patients with pre-existing conditions does the use of covid vaccine reduces the future risk of COVID-19 related pneumonia compared with patients who have not received the vaccine?