I know that in SushiSwap it is possible to obtain the price of a token with a tight contract reading getAmountsOut and then send it to the from through the etherjs library. https://etherscan.io/address/0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f#readContract
It is possible to do the same with the v3 version of Uniswap V3? https://docs.uniswap.org/protocol/introduction
Or is possible e another method?