Not necessarily, although it's a bit complicated to understand in C++.
Starting with C++17, there is a feature called guaranteed copy elision that works for many/most scenarios that you would want. You need to read through the following resources to understand it fully:
One could say this statement applies to most lines of C++ code. Lol