Yes, when using the sum function this will only calculate the sum of the values that we see in the query results.