The short answer is yes and no. Yes magnets can spin, but only in that they can be made to spin by rotating the shaft they are mounted on. By its very nature a toroidal transformer is self shielded with the majority of its magnetic flux contained within the toroid core itself (not acting on objects near the toroid, or in your example within in the middle of the toroid hole).