Toothpaste can be used as a temporary solution for cleaning headlights. However, it's best to use a dedicated headlight cleaner for optimal results.