Yes. In fact, that is basically the definition of a derivative. It is the instantaneous rate of change of a function.
For example, picture the graph of the following function:
![f(x) = x^2](https://img.qammunity.org/2019/formulas/mathematics/college/2qhjlnqfcp4cgvzngwrrngr16hhpncdnrb.png)
The slope is constantly changing at every x-value, so to find the slope at x=a, we find the derivative of the function.
![f'(x)=2x](https://img.qammunity.org/2019/formulas/mathematics/high-school/mfeac9ax39faxy4vgvk7hd7fa4hmcox8c5.png)
Once we have the derivative, simply plug in a for x to find the slope of the line tangent to f(x) at x=a.
For example, at x=5:
![f'(5)=2(5)](https://img.qammunity.org/2019/formulas/mathematics/high-school/g0sreqq6rt3eqp787nqtb958lhpi6n6nkl.png)
The slope of f(x) at x=5 is 10.