Yes.
The equation
$$
y = x - 2
$$
is an algebraic equation because it directly relates the variables $x$ and $y$ and contains no derivatives.
In contrast,
$$
\frac{dy}{dx} = x + 2
$$
is a differential equation because it contains the derivative $\frac{dy}{dx}$, which represents the rate of change of $y$ with respect to $x$.
A useful distinction is that an algebraic equation usually describes a specific relationship between variables, whereas a differential equation describes how a quantity changes and typically has a family of solutions.
For example, solving
$$
\frac{dy}{dx} = x + 2
$$
gives
$$
y = \int (x+2)\,dx
$$
$$
y = \frac{x^2}{2} + 2x + C
$$
where $C$ is an arbitrary constant.
This shows that a differential equation generally corresponds to infinitely many possible functions rather than a single curve. Each choice of $C$ produces a different solution curve, all of which satisfy the differential equation.