Diarrhea and the pill?

I've heard that sometimes having diarrhea can affect the pill's absorption and can make it ineffective. Do you think this is true? Would being sick with diarrhea make the pill as ineffective as missing a pill?