If you know you've been exposed to the hepatitis B virus, call your doctor immediately. If you haven't been vaccinated or aren't sure whether you've been vaccinated or whether you responded to the vaccination, receiving an injection of hepatitis B immune globulin within 12 hours of coming in contact with the virus may help protect you from developing hepatitis B. You should be vaccinated at the same time