There are many kinds of masks and many different communicable diseases. A cloth mask will not block covid aerosol transmission at all, and covid is known to transmit via aerosol. A cloth mask may prevent some spread via droplets, but it's unclear if it's "highly effective" or just "marginally effective" or even "ineffective" given how often people touch and adjust cloth masks and how rarely people wash them.