Is there a way to have multiple screens in a 2D sidescroller?

For example, when Mario goes down a pipe and it takes you to a new screen or when Link enters a dungeon or when Megaman climbs a ladder.