Can students message a teacher?
If the course is published, yes they can. This can be done through the Canvas Inbox:
How do I send a message to a user in a course in Conversations as a student?
You can also click on Help > Ask the Instructor as well.
Retrieving data ...