adding it early or late will give different flavor, adding it at the very end of cooking will usually leave you with an unpleasant raw spice taste unless it is a roasted variety of curry powder. it does make a big difference whether the powder is added into oil, water, or an emulsion.