Is OM MA NI PADME HUM flag useful?
If it helps guard your and others' hearts as a summons to mindfulness it is quite useful.

If it is intended to ward off a jet falling from the sky it is not so useful.

If you are looking for a guard against "Negative and bad energy (black magic)" you are looking for a place without fear.