I did a quick google search and found this information from the US CDC
“After exposure to hepatitis B virus (HBV), appropriate and timely prophylaxis can prevent HBV infection and subsequent development of chronic infection or liver disease. The mainstay of postexposure prophylaxis (PEP) is hepatitis B vaccine, but, in certain circumstances, hepatitis B immune globulin is recommended in addition to vaccine for added protection.”
https://www.cdc.gov/hepatitis/hbv/pep.htm
Also this from another source
“ Hepatitis B vaccine is highly effective in preventing acute infection after exposure if given within 7 days and preferably within 48 hours.”
https://www.hpsc.ie/a-z/EMIToolkit/appendices/app8.pdf
For more information beyond what I as a layperson was able to find I would recommend you speak with your doctor as they are best able to fully answer your questions and concerns and then follow their advice..
Best of luck.