Sale tax without LP Tax

Is it possible to write a transferFrom function for ERC20 that taxes sales to a router but not liquidity provision?

Thanks!