Yes, she can
Antibodies against many diseases, including hepb, pass from a pregnant woman to her baby via the placenta
The antibodies fade away during the first 6 months of life, but the baby will have gotten his own hepb shots by then. Some vaccinated women do not have enough hepb antibodies because so many years have passed since they were vaccinated. They may not pass enough antibodies to their babies.