That’s correct.
Only California to my knowledge ever allowed one to vote for say a Republican primary candidate for Governor and rat for Senator. This was called a “blanket primary” and was ruled unconstitutional by the Supreme Court in 2000 I believe.
That’s assuming Democrats only vote once, a very weak assumption, in this case.