Vitamin B12 is an essential nutrient that is present naturally in meat, seafood and dairy foods and is added to products such as cereal and nutritional yeast. Older adults and people with certain conditions, however, may be unable to absorb dietary B12. Such individuals may be prescribed a vitamin B12 shot to prevent deficiency. Additionally, vitamin B12 injections are sometimes prescribed as energy boosters.