As soon as you understand that you have contact with the Hepatitis B virus, you can reach out to a healthcare expert and get a shot of immunoglobulin within the first 24 hours. Afterwards, you should also get the vaccination against the Hepatitis B virus.