Yes Vinegar is a good all natural carpet cleaning solution and you can spray the carpet with Vinegar to clean spots of the carpet or you can even mix vinegar in with water in a carpet cleaner and clean the carpets that way.
I have an upright carpet cleaning machine and I mix vinegar with some water in the carpet cleaning machine and then go over my carpet a few times.
The vinegar helps the carpet smell good plus does a good job at cleaning the carpet too.
You can also sprinkle baking soda onto the carpet and then use the carpet cleaner again to go over the carpet and the baking soda will do an even better job at deodorizing the carpet along with the vinegar.
You can also use vinegar and baking soda in upholstery cleaners or spray vinegar onto upholstery as well and sprinkle baking soda on the upholstery to clean and deodorize your furniture.