B12 shots help with vitamin B12 deficiency and may prevent some health problems. Your B-12 shot should be prescribed by a healthcare provider to ensure safe and proper use of the supplement.