Well, yes, technically. You can basically play it against almost anything. The only problem is that in the Nimzowitsch-Larsen, they can take your knight and damage your structure.
(White plays a few random moves in some lines because I don’t actually know the Nimzowitsch-Larsen or the King’s Fianchetto)
I would recommend switching your repertoire based on what your opponent plays. This is completely fine, however.
As it is said in the title, can you play the KID against any fianchetto openings? By that I mean against the Nimzowitsch-Larsen Attack, King's Fianchetto, and any other similar openings.