It will totally depend on the exchange and how strict they are with checking the coins' origins.
Generally though, if you don't want your centralized exchange account to be blocked/locked, just don't. Just sell the coins through peer-to-peer (Binance P2P, etc) as P2P buyers/sellers generally don't care about your coins' history.