Yes, it costs much more to assemble a bike piece meal than buying one ready made. As far as I figure, buying a ready made bike gives you a free frame or even more.
Even buying used components is more expensive. If you are willing to have used components, why not buy a used bike? Used bikes can be had for much less than new bikes and the wear on them is often not significant.