Yes, that is true. The carbon sequestration is greatest when the tree is turning CO2 into more tree (e.g. when it’s growing). This process largely stops as a tree hits maturity, and the CO2 is mostly returned when the tree burns or rots.
I’m making the explicit assumption that a shade tree will probably be fully grown.