Not exactly, ! means the event will not be triggered on yourself, but it is meaningless with the text event. Text events will never be triggered on yourself. You can use the ! prefix e.g. with join and op events to prevent them being triggered if you join a channel or if you op somebody. Read the help file for more information (/help remote).