Is this true for software as well?
It does also apply to software, but software vendors will rather refund you than fix it.
There is no such thing as a free sale, and no, when you are gifted something, then you don't get the EU warranty protection.
* Buy One Get One Free * Free USB-C to A hub with your new Macbook Pro
I would expect the free item to be covered in these cases?