K-9 does not handle spam filtering or tagging, and neither IMAP nor POP have any built-in protocol for spam tagging. Some email providers give a way to do this by moving mail to specific folders (e.g. in Gmail, moving a message from spam to inbox indicates the message is not spam), however there is no universal answer.
Check with your email provider for more information.
--Sean