Yes and no.
Tmj problems usually respond better to moist heat than to ice.
Moist heat increases blood flow, while ice restricts blood flow to the muscles and the joint. I usually recommend moist heat, but i've had many patients that prefer to apply ice. There is no hard and fast rule, and little research on this topic to depend on.