RTS is best suited for path finding around obstacles, so depending on how you set it up, yes it could work. I would suggest you turn off angle changing in rts preferences, and use a comparison like if rts destination x is greater than current x, set angle to 0, and if destination x is less than current x set angle to 180.
Keep in mind rts moves along both x, and y axes, so you will have to place and add obstacles to the rts behavior, and your map accommodatingly.