Yes. COVID-19 vaccines are safe and recommended for most people with any medical conditions. Vaccination helps to prevent severe illness, hospitalization and death from COVID-19. If you have a medical condition, speak with your healthcare provider about steps you can take to manage your health and risks. Getting vaccinated, wearing a mask, washing your hands, and keeping your distance from others are all very important to keep you safe from COVID-19.
People with moderately to severely compromised immune systems should receive an additional dose of mRNA COVID-19 vaccine after the initial 2 doses. https://www.cdc.gov/coronavirus/2019-ncov/vaccines/different-vaccines.html