Sure it is fine as long as the law is like New Hampshire's and requires that you only have one voting domicile. I don't think any state would block you from moving into that state for the sole purpose of voting in that state. Anyone can voting forum shop today if it is that important to you.