Hydrocodone (Vicodin) actually IS safe during pregnancy and I'm assuming you told the ER you were pregnant and that they're not just willy-nilly allowing you to put chemicals in your body that could effect your fetus.
Thank you! It is safe up to the third trimester - at that point there is the risk of needing to wean after birth, which puts it in the class C category. Otherwise, if only taken a here and there in pregnancy, it is typically considered 'okay' during the first two trimesters.
I've taked to my RE, Rhuemy, PCP, and to a high-risk OB and they are all okay with hydrocodone through the second trimester. It doesn't contain NSAIDs, so there isn't that risk associated with Ibuprofen. The only one that doesn't agree is my Pain Specialist, but he's against anything under Cat A during pregnancy. Unfortunately, that's who I have my pain contract with so I will not be able to get an RX for it during pregnancy.
As long as you told the ER you're pregnant, you should be fine. If you're weary, contact your OB or call the pharmacy - they should be able to give you information to ease your mind.