Is force the derivative of energy?

It is important to understand to which derivative you are referring to, i.e. derivative with respect to what?.

For conservative systems, it is true that the force can be expressed as minus the gradient of the potential energy: $$ \tag{1} \textbf F(\textbf x) = -\nabla V( \textbf x),$$ which can be though of as the defining property of a conservative system.

The gradient $\nabla$ reduces for one-dimensional systems to the derivative with respect to the space coordinate, i.e. you have in this simple case $$ \tag{2} F = -\frac{dV}{dx}.$$

Taking as an example the case of a mass $m$ in the gravitational field of the earth, you have the potential energy $$ \tag{3} V(z) = mgz, $$ where $z$ is the distance from the ground. The force in the $z$ direction is then given by $$ F_g = - \frac{dV(z)}{dz} = -mg,$$ which is what you would expect.