Professional carpet cleaning can help eliminate pet odors by targeting the source of the odor and removing trapped bacteria and contaminants. However, the success of odor removal may depend on the severity of the odor and the extent of contamination.