Yes, WordPress has a cron system called WP Cron (which is not the same as a *nix cron). The idea is that your plugin would register a task (a WordPress action callback) that performs the desired logic (in your case, running the code that updates all the posts).