You must be alive when they harvest your organs.
No. Not exactly. You are clinically dead, brain dead when your organs are removed for transplantation to another in order to save the life of another, but your organs must be kept functioning , receive blood flow and oxygen via artificial life support long enough to keep those organs viable for transplantation.
For certain organs that is murder