I haven't tried this particular routing, but I have not used the last leg on a ticket literally hundreds of times and never had any problem with mileage credit still being earned on earlier segments. In fact, I've never had any problem of any kind doing this.