That is the only way you can get “banned”. There is a limit of 50 auths/JOINs per 15 seconds. If you go over that you will be disconnected from the server but can still reconnect and continue on immediately afterwards.
Edit: Also keep in mind any PRIVMSG is counted toward the limit including commands such as /timeout and /ban.