Continuing the discussion from Blocking Empty Usernames:
That depends on exactly what you mean
You can already register custom messages for plugins:
Docs: Example code
Example: Add-on - Contact Form 7
Example: Add-on - Gravity Forms
However, if you’re trying to simulate a particular event there’s currently no mechanism for that.