Front frame rail/a arm advice needed.

Yes, the rail on my car is damaged ahead of the k-frame mount. At the front of the k-frame is where they also welded it to the rail.

If the entire rail is replaced, does it need to be tied into the driver floor pan?
My driver side floor pan is rusty.