Generally, if two segments can be joined, you can also select the junction and press the trash can icon to have them join as well. If the trash can icon does not appear, the segments are different in some way. This might be the reason there is a junction in the first place. For more detail, see Overpasses, Underpasses and Bridges.