No, it will further stain your carpet and is not enough to sanitize the area due to the flooring texture. Detergent, steaming, shampooing, etc. is a better path for this.
Rubbing alcohol helps mold the makeup back into a solid. To do this, simply dip your clean finger into the alcohol, then rub it onto the surface of the makeup