Vicodin after tooth pulled

So I got my tooth pulled yesterday. And was prescribed Vicodin (They knew I was pregnant) well, I was wondering what you all think about using it while pregnant. I'm 12 weeks.