The short answer
Not in any reliable way. Toothpaste is a popular home tip for nail polish, but it isn’t a solvent. It’s made to scrub teeth, so it’s mostly mild abrasives, soap, and water. A scrubbing paste can’t dissolve nail polish the way a remover does, and on carpet it tends to leave a sticky film behind.
Why people suggest it
Toothpaste turns up in many home tips, usually for hard surfaces where a paste can be wiped away cleanly. Carpet is different. The fibers hold onto both the paste and the polish, so it’s hard to rinse everything out. Scrubbing to work the paste in can also push the polish deeper.
What to use instead
For fresh polish, a non-acetone nail polish remover is the gentlest option to start with. Acetone works faster on many polishes but can damage some fibers, so test it first. Rubbing alcohol and hairspray are common substitutes that some people use. For the full sequence, read how to get nail polish out of carpet fast.
If you already used toothpaste
Don’t keep scrubbing. Blot up what you can with a dry towel, then dab the area with cool water. Blot again with clean towels. Mix a drop of mild dish soap into warm water, dab it on, and blot with plain water to clear any residue. Let the area dry fully before you judge the results, since a damp patch can look darker than it will once it’s dry.
Test before you try anything
Choose a hidden spot, press a damp white cloth with the product you plan to use, wait a few minutes, and check whether color transfers to the cloth or the texture changes. Only treat the visible stain once the test area looks normal.
When to get help
If the polish is old, the stain is large, or the carpet is wool or another delicate fiber, a professional can assess it. Avoid repeatedly trying products that aren’t working, since each attempt can leave more residue or affect the fibers.