Yeah, in halfway decent shape, 40 miles is probably more of a mental hurdle unless your bike is an anchor or uncomfortable. Make sure to stay hydrated and maybe have a couple snacks.
Take it easy, in a group ride situation don't get carried away, unless you are looking for some pain.