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.”
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.”
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.