Feed output from one transformer model as input to another

Is this possible or do I have to perform pooling at each sentence vector to get single value to represent that sentence and use that as an input?