Seems likely it would.Nice. This seems very intriguing, thanks for the guide btw. I'm just trying to figure out the best way to backup my data and restore it after flashing and relocking the bootloader. I suppose I could initially build with magisk and then use an app to restore apps/data, then I could make a new build with an unpatched boot.img, resign with my keys, then reflash the new build so I can get rid of root and keep my data. I am assuming this would work?
You could also use Seedvault if your current ROM has it, or do individual backups for each of the apps that support them (which is what I do).