It's probably not the best idea. Rewriting history is fine for your own branches, but it's not wise to rewrite history for branches you've already pushed -- it'll result in duplicate commits for anyone who has already pulled from your repo.
The Git manual has more info about this.