Dog threw up yellow?

We noticed our dog had like a foamy mouth, I went to check his kennel where he's been laying and there was yellow liquid and yellow liquid foam all over the floor. I mean I don't think that's normal but has anyone experienced that? Should I take him to the vet?