No, Martha Stewart went to jail for obstruction of justice because she lied to the investigators about someone giving her a stock tip. She likely would have been fine if she had just told the truth (or had just refused to talk).
That's splitting hairs, though. She lied because she knew that what she did was against the law. She was held up as an example not to dissuade people from lying to investigators as much as to dissuade people from insider trading.