Did the underground railroad help slaves escape north toward free territory?

That is correct. The underground railroad helped slaves escape north to free territory.