Yes. You can use the -i switch of /debug to make it call an alias where you can parse $1 (the raw line). See /help /debug for more. An example:
  • alias myAlias {
    tokenize 32 $1
    if $3 == PRIVMSG { echo -s Target: $4 }
    }
(type /debug -i nul myAlias to begin)