B12 shots and pregnant 13 weeks n 3 days

an

I went to the hospital for hallucinations and they said everything is fine but I have really low b12 vitamin and they want me to take shots and I’m just wondering if it’s safe or not? Wondered if y’all experienced this? I’m scared to hurt my baby and I hate needles. I’m going crazy now. I don’t want to cause miscarriage or anything😩😢