Yes, you can get short-term home insurance. It’s usually used to cover unoccupied properties.
For example, if you’re renovating a house before you move in, temporary contents insurance could protect your belongings while there’s no one living there.