Can I combine a treacmill run and an outdoor run into one run?

I've been doing my long runs partially on a treadmill (because I hate running in the dar) and partially outside. Can I combine the two into one run?