Assuming it's big enough (i.e. deep enough) then sure, I was thinking that when I wrote the last sentence! I have no clue just how big the core would have to be for it to be molten, and also no clue what would happen to how the currents would move within a core shaped like that. Essentially you've created a Dyson Sphere and cut the top and bottom off if I'm reading it right