Not if you apply a sane window.
Hamming/Hanning/Blackman/Blackman-Harris/Kaiser and a dozen or so more they all work and all optimise for different things, sometimes transition band, sometimes passband flatness, sometimes stopband attenuation, sometimes something else...
Rectangular windows (Your boxcar) are a thing and even have valid uses, but usually something else is well worth the computational load.
Regards, Dan.