Yes Vinegar can safely be used and mixed in with Carpet cleaner or you can even clean your carpet just using the Vinegar alone.
Vinegar makes a good upholstery and carpet cleaner that is all natural but yes if you do add Vinegar to the carpet cleaning solution then it will clean even better than the carpet cleaner alone.