Yes you can say that, but some people may think you're dying or having a big problem, so it's usually better to give a bit more information about why you'll be gone, even if it's only vague, for example "I'll be gone for a while - I have some business to take care of." BUT if you'll be leaving your home unattended, don't advertise this too loudly, as it may invite burglars!