Unless the product packaging specifically states it is safe for use on clothing, it is not recommended to use carpet cleaning spray or solution to clean your clothes. There is a risk that it could damage the fabric or cause colour fading or bleaching.
To remove stains or marks from clothing, it’s always best to choose a laundry detergent, stain removal spray for clothes or another product specially designed for use on clothing.