Well, shampooing and steam cleaning will help to remove the dirt and stains on your carpet. But, steam cleaning can get better results as it will deep clean your carpet fibers.