You could, but it would be kind of weird.
No, I take that back; if you used a hang-on filter that was way too big to ordinarily use on the tank itself, then that would make sense. That way you could get the filtering power without swirling the tank's water so much that the fish couldn't swim normally.