People do that. Arguably, the parties used to be more ideologically diverse than they are now.
For example, the "boll weevils" (conservative Democrats) during the 80s aligned with Reagan on more issues than not. (https://en.wikipedia.org/wiki/Conservative_Democrat#1981.E2....)
The Log Cabin Republicans (Republican LGBT advocates) declined to endorse the party's presidential candidate in 1992 (Bush), 2004 (Bush) and 2016 (Trump)...except in 2016 a lot of local chapters that reversed the national organization's decision (https://en.wikipedia.org/wiki/Log_Cabin_Republicans#History).
---
So....there's a lot of deviating from party lines. Candidates have run on multiple political parties at various times. But presumably, you'll usually get the most support if you run elbows with the side that you agree with most. And feigning political beliefs is possible, but ew.
Assuming the local/regional party machine backs him and provides campaign funds, he'll likely be required to at least call some major donors soliciting support for other campaigns that the relevant leadership is interested in or for the party organization itself. Congressmen at the state and federal level spend an absurd amount of time doing these calls on behalf of their own and others' campaigns because those elections are expensive to fight but at the local level, the elections are far cheaper and the allegiances to parties are looser. He would have to cater to his supporters in order to get their support for the next election but he wouldn't be obligated to do anything.