Hi Bhanu,
No, the comunity commons action isInDevelopment will only return true in your ‘D’ environment. Test and Acceptance will give ‘true’.
I’d recommend creating an ‘Environment’ constant (with T, A or P value per environment) or if it’s only the Production environment information your after, you can also create a ‘isProduction’ constant. Easy as that :)
Good luck!