Yes, if you occupy the property on a regular and stable basis, you can declare it your principal residence.
This means that it will be the officially recognized address for all your administrative, tax and social obligations (CAF, taxes, social security, etc.).
To find out which rules apply to ayour situation, we encourage you to consult the official sources of the authorities in your country of residence.