How to had a hook before the transferFrom function ERC20

Hello I was wondering if it was possible to add some sort of hook so that when tokens are being sold on uniswap a hook can be implemented before the transferFrom function is called ? So when uniswap goes to call the transferFrom function in the oppen zeplin erc20 template it first calls beforeTokenTransfer or something like that ?