Can a woolly mammoth kill a t-rex?

Yes. A woolly mammoth is very capable of killing a t-rex by ramming into it or hitting it with its tusks, but these two creatures never meet.