Can you take these while pregnant?

Shannon • Mother of 4 beautiful girls💕
Can you take B12, and magnesium while pregnant?