If you want to use environment variables content in your code take a look at qgetenv otherwise no, macros are pre-processed at build time (nothing Qt specific here it's how C/C++ works)
@Jessica Do you mean reading environment variables at runtime and acting accordingly in your code? If so, I guess you may want to take a look at qgetenv function.