definitely not, i doesn't have nothing to do with diet.
diet can help have less damage to the liver if any is present or boost "present" immune response if any is present, but it doesn't make anything to the virus or to the immune system
I don't know really because if you are already chronic carrier of Hepatitis B it is very hard to clear the virus and to get well. I'm admit I'm neglecting my diet but I exercise and I don't smoke or drink. It can help to boost your immune system and to delay the progression of the virus.