No, in Barcelona, there are numerous examples of people who went on vacation, leaving their apartment completely closed, and it was occupied.
I personally know a handful of cases where okupas tried to take people's primary residence that they just purchased and were in the process of reforming before moving, for example. And every single case was solved quickly by local police, as it's breaking and entering, not a occupation.