Yes, typically when measuring performance of equities or bonds the “total return” is used and that includes returns from capital gains and dividends. Reinvestment is then assumed via compounding the periodic returns.
For example, assuming an investment grows from $100k to $105k, and $4k is due capital gains and $1k is due to dividends, the total return is 5% ($105k - $100k)/$100k. If in the next period the return is 1%, it won’t matter if $104k or $105k was invested (if the dividend was paid out or not). If $104k was invested, it means the $1k was withdrawn from the account and then the $104k grew by $1040. If the $105k was invested, it means nothing was withdrawn and there’s more money in the portfolio to grow so it will grow by $1050, instead of $1040. But either way the portfolio return in the second period is 1%.
The total return over period 1 and 2 will be calculated as [(1.05)*(1.01)]-1=6.05%. In other words, returns ignore the dollars invested and enables you to compare growth regardless of the amount invested. But it also assumes compounding, or reinvestment.