Hepatitis B

Today I'm getting my last shit for hepatitis B but I'm on probiotics for BV. I was told that when you have another infection you can't get an immunization done. I also have a cold. Will I still be able to get it done?