Of course. There is no requirement for a restaurant to provide carry-out. Or to lose money providing it. I don't know why they let Uber push them around on that.
Lots of restaurants are dine-in only. If you provide takeout, nothing's stopping the customer from then delivering it to a secondary customer, but also idk why you'd want to prevent that.