My web search suggested that normally existing vaccines aren't helpful this way, but that there is ongoing research on "therapeutic vaccines" that would be.
https://www.webmd.com/vaccines/features/treating-disease-wit...
The article says none are currently available as treatments for any infectious disease.