Yes, a toilet cleaner can clean grout. You only need to make sure that the toilet cleaner will contain sodium hydroxide. You have to pour the cleaner on the grout and let it sit for some time. Scrub the grout with a cleaning brush. Finally, rinse and dry the grout well.