I have one simple question here. Is that possible to configure the GPIO using python?

Hi aravintheng,

Are you using the devkit or custom board for Orin Nano?

You should use pinmux spreadsheet to configure the pins you want to use.
You can also modify the pinmux/gpio dtsi manually but you should be familiar with each attributes inside in case you configure something invalid.
pinmux configurations are necessary to use the pins as GPIO.

Please note that there’s a known issue in both JP6.0 and JP6.1 currently. (which may cause GPIO control failed)
You can refer to 40hdr - SPI1 gpio padctl register bit[10] effect by gpiod tools in JP6 - #20 by KevinFFF for the patch.