Hello Ranjeet Malhotra
Analog pins are more susceptible to damage in this circumstances, digital pins have some protection circuitry, however, I suggest to isolate the pins if the pins will be receiving signals when the MCU is off in order to avoid any damage.
Let me know if this is helpful, if you have more questions do not hesitate to ask me.
Best regards,
Omar