Can alcoholics / people addicted to drugs be good parents?

Is it possible to still be a good, attentive parent while suffering from alcoholism / drug addiction?

( if this gets disrespectful I will delete, as both of these are actual diseases people suffer with)