You must backup your phone first before you debrand.

If you want to get the original firmware, you restore backup.