Correct
b. It shall be a regulation game if called by the umpire at any time after five innings have been completed, and the score shall be that of the last equal inning played, except that in the following circumstances the score of the game shall be the total number of runs that each team has scored:
1) If the team second at bat has scored more runs at the end of its fourth inning than the team first at bat has scored in five completed innings;
2) If the team second at bat has scored in an unequal number of innings more runs than the team first at bat; or
3) If the team second at bat is at bat when the game is called and has scored during the incomplete inning the same number of runs or more runs than the team first at bat.
4) By conference rule, or mutual consent of both coaches before the beginning of the contest, a game may be stopped after seven innings if one team is ahead by at least 10 runs. Each team must play an equal number of innings unless shortened because the home team needs none or only part of its half of the final inning.
So hypothetically if it's called in the top of the 6th and home team was ahead after 5 innings even if the visiting team took the lead in the top of the 6th the home team wins. Right?