Vaccines don't 100% prevent infections, but there's strong evidence that they both significantly reduce the rate at which people become infected and, should they become infected, the rate at which they can retransmit the virus to others, and we have no reason to believe they wouldn't do the same in children. It's not an all-or-nothing affair.