Exactly. A “rate of change” is a slope. 20miles/hour is a line with slope 20/1 because, for each 1 hour you go forward in the x-direction, your total total distance goes up by 20 miles in the y-direction.
A tangent is a straight line … again with a slope. So “the slope of a curve at a point” (curves being precisely those lines with non-consonant slopes) we use the tangent to define it in a way so that our straight-line idea of slope works.😄