Yes it's always best to see your veterinarian whenever your pet has a health issue!!
Because your dog has diarrhea in addition to vomiting you want to try to avoid further complications like dehydration and pancreatitis.
You might also check the FDA pet food recall list.
Dr Carol Osborne, DVM
Agree with the above post that you must consult with a good vet. They will sort out out worries. Follow that prescriptions and everything will be fine.