Putting your opponent on the record as against something is a strategy, and a perfectly valid one. Whether you out them on the record over culture war stuff, things your base cares about, or better, things their base cares about, is what makes it good strategy or not. (Not that I'm exactly impressed by the strategic success of Democrats)