Is the Jetson.GPIO library only applicable to (J41) 40pin?

If not, how to operate the pins other than 40pin?

You can use the pinmux spreadsheet for the pins other than the 40 pins.

After generating the dtsi file, go to your driver package Linux_for_Tegra/kernel/pinmux and check the readme file to understand how to generate the cfg file.