If $I$ and $J$ are monomial ideals, then the question is true.