Is it possible to stop issue creation from java code after issue form submission?

Is it possible to stop an issue from creation/status change after the issue transition occurs?