Depends on the phone - keep an eye (or more accurately, an occasional hand) on it, make it sure it doesn't start running too warm the longer you use it that way.
As long as things aren't overheating compared to your normal use, it should not be a problem.
Hope this helps!