On the one hand, this question seems obviously true. However (I think that) it assumes that if two definite integrals are equal then their integrands are the same.
In particular, let us assume $f(t)=g(t)$, and define the Fourier transform such that:
$$f(t)=\int_{-\infty}^{\infty}\tilde{f}(\omega)e^{i\omega t}\frac{d\omega}{2\pi}.(1)$$
It follows that:
$$\int_{-\infty}^{\infty}\tilde{f}(\omega)e^{i\omega t}\frac{d\omega}{2\pi}=\int_{-\infty}^{\infty}\tilde{g}(\omega)e^{i\omega t}\frac{d\omega}{2\pi}.(2)$$
Does $f(t)=g(t)$ imply $\tilde{f}(\omega)=\tilde{g}(\omega)$? This seems to be obviously true, but if I look at the equation (2), it seems to require that if two definite integrals are the same, then their integrands must be equal (which I know is not true in general).