Let $ln(p(\mathcal{D};\theta))$ be the log-likelihood function, such that $\mathcal{D}=\{\mathbf{x}_1,\mathbf{x}_2,...,\mathbf{x}_N\}$ is the observed data and $\theta$ is a vector of parameters. Now suppose that:
$$ \frac{\partial \ ln(p(\mathcal{D};\theta))}{\partial \theta} \approx \frac{\partial g(\mathcal{D},\theta)}{\partial \theta} $$
Where $g$ is a function that maps $\mathcal{D}$ and $\theta$ to a scalar in $\mathbb{R}$. Is it accurate to then say that:
$$ ln(p(\mathcal{D};\theta)) \approx g(\mathcal{D},\theta) $$