Yes, whatever it is, wrap it in a towel and you should be fine. It's only a couple of hours. Take food that settles well in your gut and will not "come back on you" on the ride home. For me, PB&J and carrots work very well. Good fuel and no GI issues. I can eat more things when I get home. PB&J easily lasts for hours, all day with minimal protection. Don't leave it on the dashboard in the sun.
I used to regularly take a picnic with me, in my handlebar bag, into the late fall. There is a spot on our Cynwood Heritage Trail that is deathly quiet but pleasent. There are Adirondack chairs sitting in the sun there. Ride a couple of hours on a cold day then settle into one of those chairs, in full warm sun and eat your picnic. A great day. Oh, those were generally 40 to 50 mile rides, lunch about halfway.
I Don't do that anymore. Have not been into Philadelphia county since "the troubles" started.