Yes, you can apply coconut oil before bleaching and using permanent dyes whether you're touching up roots or not. I wouldn't use it before using semi-permanent dyes though because then the colour won't take properly.