Does it matter where you to college?

Is it possible just to finish my pre requisites at an out of state junior college, establish residency there, and then hopefully qualify for in state tuition?