As a monorail (with 1 rail curve and 1 generation curve) the two curves don't need to be touching.
In Birail mode (2 rails and 1 or many generation curves) the curves must be touching at the corners. The inputs can only be single curves, edges or iso-curves, and the tool can only create a single surface patch.