my dog threw up grasss

so he’s never that dumb to eat grass , i feed him everyday , he’s an indoor dog, but i take him out to potty and bark. Well i disnt notice he was eating grass until he was acting weird and went into his room and threw up .. What does this mean when a dog eats grass!? should i take him to the vet ?