Can you buy a car if your license is from a state other than the state you are buying the car?

Yes. Infact, you don't even need a license to buy an automobile. Yes and not only that, if you can come up with an out-of-state residence, you MIGHT be able to get out of paying sales tax.