This is a bit confusing, since a planet is defined as "a celestial body orbiting a star or stellar remnant that is massive enough to be rounded by its own gravity, is not massive enough to cause thermonuclear fusion, and has cleared its neighboring region of planetesimals.", the relevant part being "Orbiting a star or stellar remnant".
I wouldn't think it would be possible to have a freely floating planet.