Transfer of insurance

Hi, I would like to buy a VW Polo, which is a little further away, but also in Germany, but which is not registered at the moment. Do I have to register it at my home and also my insurance or how do you do it best? Until then Johannes