Yes, you sell part of the cryptos that correspond to the profit, but keep in mind that the rest will vary along with the current price and if it falls, the remaining cryptos will also devalue