Short answer: yes. An original Apple charger without a box is exactly the same charger as the one in the packaging. The only difference is the packaging, not the product itself.

Why they're sold without a box.
Since Apple stopped including a charger with new iPhones, distributors have been left with original Apple chargers that were never put in a box. These are resold on their own. It's the same adapter, made by Apple, with the same components and the same built-in protection.

What to look for to be sure it's genuine.
Check that the charger carries Apple's markings with a model number starting with an A, for example A2305 on the 20 watt USB-C adapter. A genuine Apple adapter feels solid, has tight seams and neatly printed markings.

What you gain.
You get Apple's original charging speed and the protection Apple builds in, without paying for a box you'd throw away anyway. To fast-charge a recent iPhone, use a 20 watt adapter with a USB-C to USB-C or USB-C to Lightning cable.

View the original Apple chargers without packaging in the Caasi range.