Some women are surprised to learn they got pregnant while using heroin, Oxycontin, Percocet or other pain medications that can be misused (known as opioid drugs). You, along with family and friends, may worry about your drug use and if it could affect your baby.