It is important to understand that functions, at least in rigorous mathematics, require a domain and a codomain, a fact which the Leibniz notation unfortuantely obscures.
A priori, your $f$ is a function $\Bbb N \times \Bbb R \to \Bbb R$, so you can't take partial derivative w.r.t. the first variable.
However, your formula showed that you can extend $f$ "naturally" to become a function $\Bbb R \times \Bbb R \to \Bbb R$, and now you can take partial derivative w.r.t. the first variable.
Now it is very very important to note that the extended function is not the same as $f$, because they have different domains; however, not every situation requires a separate notation like $\overline{f}$ for the extended function, so sometimes "abuse of notation" allows us to re-use the same variable $f$ for the extended function, when the context is clear enough.
So yes, after you extended the function $f$ using the formula, then you can take partial derivative.