Kant vs Nietzsche

Yes, but one does not have to be pesimistic in order to be nihilistic. Nietzsche turned Schopenhauer’s pessimism into optimism but remained a Schopenhauerian.