Scratch repair comes after paint correction but before any sealant or wax. Touch up paint normally needs a few days/weeks to harden. If you do it first you will just remove it when you go over the area with a compound or polish. I have written about my detail order on my website if you are interested. Good luck with the detail!