In general, people in higher-risk groups such as older patients or people with compromised immune systems should get the new shot as soon as possible, said Ajay Sethi, a professor of population health sciences at the University of Wisconsin-Madison who studies infectious diseases. He advised those who recently had COVID-19 to wait to get the new shot until three months after infection.