Yes, if a stock now does not fit your investment goals, it would be wise to exit the position, even if it's performing well.