Usually this is only a problem if the habit occurs for a long period of time.  Some non-nutritive sucking habits can cause problems with the shape of the mouth and the alignment of the teeth.  Often, however, if the habit is stopped in time, the problems will self correct.