It is known that the function of complex variable $f:\mathbb{C}\setminus\{0\}\to\mathbb{C}$, $f(z)=\frac{1}{z}$ does not have a primitive function since the integral of $f$ along closed circle containing zero is equal to $2\pi i$.
Now, define $g:\mathbb{C}\setminus\{0\}\to\mathbb{C}$, $g(z)=\frac{1}{z^2}$. The integral of $g$ along closed circle containing zero is equal to zero. From this, we deduce that the integral of $g$ along any curve (not neccessarily closed) not passing through zero depends only on starting and ending point of the curve.
My question is: Can we then say that the function $-f$ is primitive to $g$ on $\mathbb{C}\setminus\{0\}$ ?