Yes, for certain commonly-consumed heavy or bulky goods, i.e. anything that's either mostly air (like toilet paper) or mostly liquid (like detergent) they aren't your best choice. That's not all goods by any means.
Also you're comparing the mileage of a bus (the UPS truck) to a passenger vehicle. The UPS truck is delivering goods for a hundred other people on his run today, the gas spent transporting your package is an absolutely insignificant fraction of that. If you're really worried about ~my carbon emissions~ then you should really be thinking about ditching that car and getting yourself to work on one of those 5 mpg busses.
In fact where I live Tesco recently raised their free-delivery minimum order threshold to try to encourage people to place larger, pre-planned orders.
Most of the stuff that you'd buy at a real-life grocery store doesn't make sense to order shipped from Amazon. Amazon as a replacement for WalMart only makes sense if you can wait a few hours for delivery and live in one of the selected areas for Fresh.