will mario galaxy gravity work on enemys?

You know that helpful example mario galaxy style gravity? I was wondering would that work on an enemy? I would want them to pull you in when you are near because, I thought that would be really cool. just a question if it doesn’t work it’s not that big of a deal