No, Shia LaBeouf does not appear in The Company You Keep (2012), Robert Redford's political thriller about former Weather Underground activists. The confusion likely stems from a surname coincidence.
Jeffrey LaBeouf, Shia's real-life father, does have a small role in the film (reportedly as a prison guard). Jeffrey, a Vietnam veteran and former comedian, has appeared in several of his son's projects, including the Even Stevens movie and Eagle Eye. The shared surname and familial connection to Shia's filmography likely sparked the mistaken belief that Shia himself was in the cast.
It's an easy mix-up, but the younger LaBeouf was not involved in this Redford-directed drama.