Short answer
Only if the machine is built for hard floors, or it has a hard-floor tool and the manual allows it. A carpet-only machine isn’t designed for tile. Its brush and suction are set up for carpet pile, and it can leave water, solution or streaks where you don’t want them.
What a carpet machine does differently
Carpet cleaning machines use a lot of water and solution, push it into the carpet and then extract it with strong suction. A brush roll can also scatter dirt and grit. On tile, that much water can sit on the surface and leave streaks or film, and the brush can spread debris around the room.
Check the manual first
Look for hard floors, bare floors or tile in the list of surfaces. Also check whether the manual has a hard-floor attachment, and whether the brush roll should be turned off or removed for hard surfaces. If the manual says not to use the machine on hard floors, follow that advice.
Hard-floor tools and modes
Many carpet cleaners include a hard-floor tool or a setting that cuts the water and disables the brush. Use that tool, not the carpet head, on tile. If your machine doesn’t have one, don’t use it on tile.
Use less solution and rinse
Solution causes most of the problems on tile. Use the least the manual allows, and where possible run plain water first to lift grit and loose dirt. Then rinse with clean water so the surface doesn’t dry hazy. Residue is the same problem covered in how to get rid of soap residue on carpet, but on hard floors the film shows much more clearly.
Drying and grout
Tile dries fast, but grout and the subfloor can stay wet for much longer. Run a fan, and don’t leave water pooled in grout lines or along the edges of the room.
When to switch tools
If the machine doesn’t list tile, or the floor is natural stone, use a mop or a steam mop made for hard floors instead. Pair it with a pH-neutral cleaner, and save the carpet machine for carpet and rugs.