To illustrate my question better, consider the Fourier Transform of an aperiodic (as a periodic cosine wave has a Fourier Transform not Fourier Series) cosine wave
$$f(x) = \begin{cases} \cos(2\pi f_0x), & \text{$ 0 \le x \le 2\pi$} \\ 0, & \text{else} \end{cases}$$
$$F[f(x)] = \frac{1}{2}(\delta(f - f_0) + \delta(f + f_0)) $$
This above implies an aperiodic cosine wave consists of two Fourier Transform coefficients which have infinite magnitude (as a delta function has infinite magnitude). Therefore, does this imply that a perfect cosine wave can not be produced in real life?