If i buy a car out of state do i have to pay taxes in both states?

I live in PA, if i buy a car in Maryland do i have to pay taxes in PA and MD?
7 answers 7