Yes. In Gmail, all spam messages are automatically removed after being in the Spam folder for more than 30 days.