Tofu does not need to be cooked before adding it to the curry, however, if using a firm or extra-firm tofu, it will taste better to pan-fry the tofu before adding it to the curry. If you are using soft tofu, you can add it in directly.