Yes. Even better, you may not need multiple shots of each since there is a vaccine that combines both hepatitis A and B in a single injection. If you received the vaccines separately, you would need two hepatitis A shots and three hepatitis B shots, for a total of five shots in six months. The combined hepatitis A and B vaccine, called Twinrix, is three shots over a six-month period.

For those wanting to build immunity quickly, Twinrix offers a more rapid schedule. This regimen includes four shots. The second dose is administered a week after the first shot, the third is a week after that, and the last is a year after the first dose. Some insurance companies don’t reimburse for Twinrix, so check your coverage before requesting the combination vaccine.

Visit the CDC’s website for more information about vaccines.