The best and healthiest sauerkraut is homemade sauerkraut because it's fresher and contains better health benefits.
However store bought sauerkraut is still good for you but not as good for your health as fresh homemade sauerkraut.
The store bought sauerkraut is usually pasteurized, and the heat from being pasteurized is what kills the probiotics which is where you get the most health benefits from the sauerkraut.
But you certainly can still get some health benefits from the store bought sauerkraut.
But the homemade sauerkraut tastes much better and is healthier do to the probiotics.