Relative to cooking a similar meal, absolutely. Getting McDonalds takes like 5 mins and almost no effort. Less if ordering for delivery or pickup. If I want to cook myself a burger its probably going to take me like 40 minutes to makes and fry the burger, and prepare toppings. Im sure a good chef could do it much faster, but thats not me, and esspecially not after a full work day.
Edit: Plus, less directly measurable and comparable, but the time and work for planning, shopping, and dishes afterwards.
I left it out because its something that can (theoretically) be left for a more convenient time such as a weekend, so its a less one-to-one comparison. That said, thats still additional work compared to buying food.