The short answer is yes .
It is always up to you (the developer) to ensure that you receive data received from user input (in this case, messages). Having said that the asp.net framework will do a lot of checks for you, such as "suspicious search values".
You can create a message at the endpoint of the website, even if there is no submit button on the page displayed.
Edit
This would be an example of security through obscurity and, as a rule, is not best practice. The Asp.Net submit buttons change the hidden field of the __EVENTTARGET form. Asp.net handlers will check this field when defining an event button. This value can be falsified if the attacker knew the name of the target.
Hiding / showing user interface elements is good for improving the user interface, but you should always check the user input (on the server) before performing any business actions.
source share