Hepatitis B isn't really classified as an STD, mostly a blood-borne infection -- but it can be sexually transmitted, so this forum is appropriate.
No harm done. There is no risk of any kind from receiving extra doses of HBV vaccine, or any other vaccine -- except on the health of your wallet, if your health insurance doesn't cover immunizations.
Regards-- HHH, MD