Would you say it is important to keep your site up to date to retain/increase your Google rankings?

I have noticed sites which have not been updated for a very long time but still hold their rankings in search engines?

What do you think?
Do you continue to add new content to your sites?