The answer is "yes and no", and it's that for multiple reasons. First of all the notations "$dx$" and "$df$" aren't super clear, and so are the notions of infinitesimals and they depend on context.
If you just say "an infinitesimal is a real number that is not zero but that is smaller than any number" well of course that isn't a valid definition, as there are no such numbers; but there are various formalisms that allow for things that look like that.
One of them is the formalism of nonstandard analysis, in which for a differentiable function $f$, a real $x$ and an infinitely small $\epsilon$, you have $f(x+\epsilon)=f(x)+ \epsilon f'(x) + \epsilon \delta$ where $\delta$ is also infinitely small; so here the answer is "almost but not exactly". If you want to get rid of the $\delta$ you have to write something like $\frac{f(x+\epsilon)-f(x)}{\epsilon} \approx f'(x)$.
You also have the framework of synthetic differential geometry in which for a function $f$, a "real" $x$ and a $d$ such that $d^2=0$ (these are the infinitesimals of this framework - in this framework, this does not imply $d=0$ ! but you have to reason in a nonclassical logic, because you have to give up on the excluded middle), you have $f(x+d) = f(x) + f'(x) d$. So in this framework, the answer is "kind of yes, if you're willing to change $df$".
Without infinitesimals, it becomes harder to make sense of the question. Indeed, the context where $df$ is defined doesn't allow for things such as $x+dx$ : this is just differential geometry/calculus, and $df$ is just the differential of $f$. In differential calculs you have this (by definition) : $f(x+h) = f(x) + df_x(h) + o(h)$
Of course, the idea of using infinitesimals and writing things such as $f(x+dx) = f(x) + f'(x)dx$ (or $df$), although tricky to make rigourous, is a good one to get some rough idea of what things are and to have some intuition regarding some properties. It can even help in finding proofs of various results (although, if you don't explicitly choose a framework for infinitesimals and use it properly, it cannot be a proof)