You sure can
Bots will have full access to any message within which it was mentioned (with an @). This was left accessible as a workaround to interactions as a result of developer feedback following the message content restriction announcement. If you don’t vibe with slash commands, by all means feel free to leverage this.
DMs sent to the bot will work in the same way but this will be less useful for server functionality as the bot will have limited capacity to determine the user’s server of origin.