It's commonly used as a short, affirmative response but the exact connotation can depend on the situation and context.