Can I vote in PA in 2020 and still do my 2020 taxes next year as a MN resident?

I just moved to MN from PA and have a place to live here, pay bills here, have health insurance here, and intend to stay. All these things mean I will file my 2020 taxes next year as a MN resident. But I want to vote in the primaries. MN's primaries are over but PA's isn't til June. If I vote (absentee) in PA's primary in June and don't change my voter registration to MN til afterwards, will that mess up my 2020 residency? I don't want to do PA taxes next year.