Well, yes. That part is obvious enough. The interesting part is how you build the mapping from time domain to frequency domain. That is the part that never clicked for me.
Maybe that's because a sinusoid of any frequence has its "roundness" and that is a matter of "hunting" which that formula performs every infinite-small moment to an x/y graph of your favourite music composition.