Can you still donate your organs if you die because your body reject a donated organ?

If you get, for example, a bone marrow transplant and you die because your body reject it, can you still donate your organs like your heart ect?
8 answers 8