Vaccines for those with medical conditions, allergies?

Should people with underlying medical conditions or allergies get the vaccine?