Yes, a vet administered bordetella vaccination will prevent your dog from contracting kennel cough, but because there are multiple strains of kennel cough, the vaccination does not protect against every strain.
A bordetella bronchiseptica vaccine can help protect your dog from contracting kennel cough, although the vaccine won't prevent infections caused by viruses.