You can sell stocks when they lose value for any number of reasons, but it’s likely best practice to make sure you’re doing so as a part of an overall investing strategy, e.g. tax-loss harvesting, and not simply because you’re making an emotional or irrational decision based on current market conditions.