Technically no. Most CATS rooms (classrooms, lecture halls) have a no-food and no-drinks rule, but please feel free to ignore that, like thousands of other like-minded hungry students.
In other words, yes you can eat in classes, although you are not supposed to.