Yes its safe to do it. Seems odd but it works. It will temporary seals the leaks in boots and wires. After doing it, drive your car, you will not face any problem if due to damaged boots and wires.
highlighted part in pic I posted above is boot. You can pull it carefully. Please do it when car is cold to avoid any damage to boots when pulling.
You can buy new boots and wires if issue resolved. Easily available in market. Also don't buy from junkyard as mostly wires available there are already damaged/leaked. You can't judge by inspecting visually.