Yes, exclude them. Public schools aren't daycare for preventable outbreaks—if your kid isn't vaccinated, they shouldn't be a vector putting immunocompromised classmates at risk.
Schools already juggle too much without containing outbreaks from skipped shots. Parents opting out should handle their own risks instead of leaning on the system.