That person would presumably be vaccinated, thus they wouldn't get the virus from him. Why does everyone talk about how the vaccine works, but then use this argument against people that don't want to get the vaccine?
Immunocompromised might not be able to get a vaccine because the mechanism for vaccines is the immune system, which tends not be be working so great in the immunocompromised.