Is buying out of state worth it?

Specifically I'm looking at deals on Leasehackr and I'm COMPLETELY new to all of this. I'm wondering if buying a car out of state, and coming back to california even worth it? Does it save on money or does it even matter?