Does installing KDE increase the attack surface?

Sure, here is an always-relevant statement regardless of context: