There is a vaccine, but it's not usually used except on people at high risk, like people working in laboratories who have to handle the disease.
Anthrax can kill you if you don't get treatment.