Can I run an unrelated electrical cable under a bathtub?
There is no code telling you that you cannot do this.  Electric is ran under plumbing in walls all the time and that probably has a lot better chance of getting wet than under a tub.  I personally would run it inside pvc under the tub but I don't think it matters.  A GFCI outlet also sounds like a good idea.