Pain pills and pregnancy?

For those that have had a pre-existing condition, will you continue to take pain medication? Have any of you taken them throughout pregnancy and had a healthy pregnancy/baby? What effects do they have on baby?