Yes you can use All Purpose Cleaner as well as Lysol All Purpose cleaner for cleaning carpets.
Lysol All Purpose Cleaner works to clean a variety of surfaces including cleaning and disinfecting carpets.
You can spray some Lysol all purpose cleaner on your carpets to help disinfect the carpets and remove any stains or you can also add some Lysol All Purpose cleaner to your carpet cleaning machine.
The all purpose cleaner will help disinfect and clean your carpet with your carpet cleaning machine alongside any other carpet cleaning solutions.
You can also clean your carpets using vinegar and water by either spraying some vinegar onto the carpet or by adding some vinegar to the carpet cleaning machine along with some water.
Vinegar and water mixed together makes a great homemade natural carpet cleaning solution that helps remove stains, deodorizes carpets and helps to disinfect the carpets as well.