Yes, it is safe to get vaccinated if you have an underlying health issue. COVID-19 vaccination is especially important for people with underlying health problems like heart disease, lung disease, diabetes, and obesity. People with these conditions are considered high risk and more likely to get very sick from COVID-19. The Centers for Disease Control and Preventions recommends that people who are high risk and have underlying health conditions get vaccinated and stay up to date with their COVID-19 vaccinations. Individuals who have had prior allergic reactions to injectable medicines should consult with their medical providers before receiving a COVID-19 vaccine.
Learn more about people with underlying medical conditions on the CDC website.