Basically yes.
Actually, for showers, the best way is probably to use hat exchangers, that heat the incoming water from the stuff going down the drain. Done right, this can very dramatically reduce heat usage. Of course, there is a tradeoff between heat exchanger size/complexity/cost/cleanability, and heat recovery.
With baths, unless you're topping up a warm bath with hot water don't really work this way though.