There is no recommended waiting period before conceiving. It’s OK to get the hep B vaccine shortly before or even during a pregnancy.
If you are planning to become pregnant, talk with your doctor now to confirm that all your recommended vaccines are up to date.