You cannot connect 2 pages together to make one long page.
However, you can use snippets to combine page logic and reuse this logic in other pages (or multiple times on the same page). See https://docs.mendix.com/refguide/snippet/ for more information