Correct. Haphazardly passing ownership of individual nodes around is a C++ and OOP anti-pattern.