This could be true in some circumstances, but not all.
There is also no requirement to live there 6 months. The legislation doesn't specify any minimum period so theoretically 1 day would be enough as long as you could reasonably argue that it was your main residence during this period.