You are correct. When you sell the car, the proceeds will be "recaptured", meaning you'll pay back part of the CCA deducted.
For example, you claimed $55k CCA in 2019, in 2020 you sold the car for $40k, the $40k is recaptured and treated as income for 2020, and you'll be taxed on the $40k...