It was a long time since I studied this, but it is not true in all situations, e.g. when working with congruences modulo some non-prime number.
x*y can be 0 (mod 6) but I don't think it takes knowing abstract algebra and a deep knowledge of modulo and axioms to figure that out. I hope math teachers that don't know abstract algebra know that!