Not certain if it is routed correctly, but you should not leave wires exposed anywhere. In the engine bay or any exterior surface susceptible to weather or dirt (e.g., undercarriage, frame, etc.), cover the wire with split loom (a.k.a. convoluted tubing), and then wrap the split loom with electrical tape. On the interior, wrap the wire with electrical tape and then fabric tape. At least, that is what I do. But, just leaving a wire exposed enables it to be easily abraded (or chewed by rodents) and for the conductor to be exposed, with possibility of a short or open in the circuit. Adding a layer of protection will help prevent far costlier repairs.