It is a condition in the permissibility of consuming the eggs of the fish that they are taken from the water alive. If purchasing the spawn is not for the purpose of eating them, then it is permissible to do so even if the fish was not taken from the water alive.