The devil is in the details though. Covid vaccines are not a good example of this as they mostly reduce the risk of dying from Covid. You can still get sick and distribute the virus, it is just a ton milder and much less dangerous (which is still useful and you should get vaccinated obviously, just saying before anyone thinks I am anti vaccine). The measles vaccine however prevents people from getting sick at all, unless I am mistaken.