They will only infect the unvaccinated if the vaccinated birds were exposed to mareks. The vaccine doesn't prevent it, just the symptoms that kill/paralyze the bird (as long as they were kept from the virus for 2 weeks after vaccination and the strain isn’t a super bad strain)