Yes, white magic can use for protection. It does not matter you use black magic or white magic protection is protection. All types of magic can be used for protection.
exactly akhtar bhai magic is magic. it can white magic use for protection as well as black and other magic. Only important is your intentions with good intentions black magic can be used for good purpose too.