Say you have this function y=f(x) then the following expressions all indicate that you are taking the derivative of this function, so you can use them interchangebly, however, as i pointed out using one notation vs the other has it's advantages when you want to indicate the derivative with respect to what variable you are taking, especially when you go to partial derivatives, or multivariable calculus, then leibniz notation is all you'll see.
f'(x)=\frac{dy}{dx}=\frac{d}{dx}f(x)=D_x etc convey the same msg.