Yes, Seek Veterinary Care
Ham is fatty and can cause pancreatitis, which is serious and potentially fatal. Vomiting and diarrhea can also lead to dehydration. Take your dog to the vet immediately if symptoms occur.
Remove access to ham, offer small amounts of water, and withhold food until you reach the clinic.