No, it's not a problem depending on the size of the piece that he ate or if it was treated with something. In general it is OK.
Depending on the size of your pet dog you can give him a half clove of garlic a week and he won't get fleas again.