Yeah thats possible, however only before you injected the image, you wont be able to install XPosed then however (and with it XPrivacy, one of the few ways to make an Android phone secure)
For example if you inject a rooted image, but then by mistake update SU breaking the root, a reboot of...