Is it possible to pass environment variables to multibranch pipeline job in a time of generating it via DSL?
You can use Jenkins DSL and pass the environment variable as mentioned in below links:

https://jenkins.io/doc/book/pipeline/syntax/#environment
https://jenkins.io/doc/pipeline/steps/workflow-basic-steps/#withenv-set-environment-variables