Also last month, the Centers for Disease Control and Prevention warned that taking pain relievers containing opioids, such as Vicodin, OxyContin and Tylenol with codeine, just before or in early pregnancy increased the risk of congenital heart defects, glaucoma and other problems.