Yes, for dividends and capital gains, the partner bank automatically deducts withholding tax (plus solidarity surcharge and, if applicable, church tax). This happens automatically if your profits exceed the tax-free savings allowance or if there is no tax exemption order. You don't need to do anything else— all taxes are calculated and paid for you.