Your main challenge here is on the return trip. If you leave Yosemite after about 7:30pm, all the decent places to eat will close just before you get to them.