Yes, because when you sell it, you get cash and profit. Profit is taxable, in Germany they tax it with 25% + Solidarity Tax + Church Tax (if you are a member of a church).
After, you can go ahead and buy another fund, but in between you "shed" a significant amount of money.