I've seen a lot of sketchy wire runs and I've seen some others. It really depends on how you get there. If you ensure there is no way for the wire to be pinched, rubbed, marred or generally hurt it should be good.

If you close it in a door jamb or have it able to rub etc, you are asking for trouble.