No this isn't possible anymore due to limitations that Apple have made. iOS devices will not make any changes i.e. settings or app's while the device is locked.
This is a real pain in education environments where you try to load app's onto devices before they are required.
If you found this post helpful, please give it Kudos. If my answer solves your problem, please click Accept as Solution so others can benefit from it.