No, many asteroids have detectable, "functional" (e.g. they pull dust towards them) gravitational fields, but are not spinning like planets.