Yes.

If you have learnt derivatives yet, you'll know that the derivative of a curve gives the equation of the gradient at any point. Here, the derivative of this curve is 2x. So, the gradient is directly proportional to the magnitude of x, which you got right.