Not quite. However research suggests that taking garlic vitamins could reduce the length of a cold and may even reduce your chances of catching one in the first place.
This is due to garlic’s ability to support the immune system, however studies are limited and more data is needed to prove the theory.