Perform exchange of 2 tokens without generating liquids

Hello community, I have my defi exchange, but I want to perform an exchange action tokenA by tokenB, without generating liquids, is it possible?