You certainly can! many product available some call it epoxy grout colorant. and others call it believe it or not! Grout Paint. Comes in lots of colours. I'd suggest that you either visite your local Tile shop or searched the web for more infomation. Normal rules will apply grout is clean and dry and free from dirt and grease before application.
But i'd go investigating.